• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
  • entries
    4
  • comments
    11
  • views
    17281

About this blog

Development of a 3d stealth rpg

Entries in this blog

lwm

Still Alive

My last entry was over a year ago - but I'm still alive. Now that the major coding phase for my master's thesis is behind me, I find myself tinkering again in my spare time.

Here are some of the major changes since last year:

SharpDX
I really wanted access to some of the DX11 features and the SharpDX toolkit makes the transition from XNA very painless. I was never really a big fan of XNA's content pipeline, so I created my own. Turns out, Assimp is a a lot faster, more flexible, and robust than XNA's importers and crunch does an excellent job of compressing textures.

Skeletal Animation
I always thought the math involved in skeletal animation was scary. However, implementing it for myself was surprisingly easy. Besides simply playing and mixing animations, I can now easily sync gameplay actions with events embedded in the animations.

Navmesh Generation
While working on the AI, I realized that the classic waypoint graphs weren't working for me anymore. They had to be way too dense in order to allow the kinds of behaviors I wanted. So now I entered the 21st century and use navmeshes that are automatically generated from the level geometry. Since the walkable areas are 2D, I use the excellent libraries Clipper and Poly2Tri to generate and triangulate the meshes.

BIernjQ.jpg
lwm
So, what did I do since last time: Not as much as I had hoped, unfortunately. I catch myself all the time trying to optimize or generalize a system that's working perfectly fine instead of implementing more game mechanics. I'm probably going to put together a short mission statement over the next couple of days and start looking for some people to help me tackle this thing.

I implemented some new behaviors for the AI and switched from the 2d grid to a much more nav-mesh-like representation. Since I still wanted to use the same data structure for both pathfinding and influence mapping, the graph has to be rather dense. But performance on the CPU-side is not really a problem, so I'm okay with it. I also had a look at Dave Mark's and Kevin Dill's talk on utility-based AI and promptly implemented some of the concepts.
ai.png?psid=1

The shader for the skill that will essentially be the robot version of night vision turned out well, I think. I always thought the visuals of the night vision modes in other games were way too clean, so I put a lot of noise and blur in it. It looks much more coherent in motion though. Our brains are way too good at recognizing shapes. (Same scene with normal shaders).
emvision.png?psid=1

I love tinkering with a shader until it looks nice and I'm fairly okay at creating textures but I was definitely not born to be a 3d artist. Since everybody seems to love cubes nowadays anyway, I just decided to embrace a more abstract and simplistic style for now. We'll see how that turns out smile.png
new_props.png?psid=1
lwm

Oh god, they're coming!

I've mostly been working on the AI lately, because without an AI that gives the player at least somewhat of a challenge, a stealth-based game would be rather boring. Behavior trees seem to be very popular these days, so I implemented the basic node types using iterators in C#. "Abusing" iterators for anything other than lazily evaluated collections is a lot of fun, although it certainly takes a moment to wrap your head around the unfamiliar control flow.

In my specific case, I found behavior trees to be awesome for fine-grained behaviors. For example, when one of the enemy avatars hears a suspicious noise, I want it to stop for a few milliseconds, turn around, raise it's weapon and look around for a couple of seconds. Using behavior trees makes that very easy. For higher-lever AI though, like deciding the most probable position of the player and doing a systematic sweep of a room (possibly with the aid of some allies), a simple hierarchical state machine turned out to get me the desired result much quicker and with less code.

I decided to use an influence map to allow the AI to track the player's position. Unfortunately, the enemies would often run around in circles because by the time they had investigated one corner of the room, another, already visited part of the room had filled back up. Tweaking the momentum and decay only got me so far, so I added an additional "channel" to the map to slow down the momentum for areas the AI had already visited. I'm pretty happy with how it turned out, the AI seems considerably less stupid now. smile.png

Here is a screenshot of my avatar being chased by an enemy:
roa_ai.jpg

Better quality: [1]
lwm

My Current Project: Roa

Hi everyone,

For the past several months, I've been working on what is supposed to become a 3d top-down action-rpg with a focus on stealth and subtlety. Now that the engine is working adequately well, I wanted to start this journal in order to make me focus more on actual gameplay. After a couple of exams in the coming weeks, I hope to put together a small demo for all of you to try with some preliminary gameplay.

This is what it looks like so far:

ingame1.jpg
roa1.jpg

Better quality: [1] [2]
Sign in to follow this  
Followers 0