Hot answers tagged

12

One option is to simply make dying inevitable in the long run. Let's take Crusader Kings 2, for example. This is kind of a strategy game (the genre is hard to define) which takes place over several hundred years, so your character dying of old age (or sickness, assassination, in battle etc.) and getting replaced with their heir is a regular event in the ...


10

I think one important consideration whenever you incorporate a real-world phenomenon into your game - especially one with huge social implications like family & inheritance - is that the mechanics you author articulate an opinion of what this phenomenon is, should be, or means. And how that opinion is read or understood can hinge on cultural factors ...


7

Input is hard. Most of the simple patterns you see frequently in game dev just don't work well for input, at least at the low level. Typically, for any kind of GUI, you need to have some concepts of focus and possibly also bubbling. The HTML/DOM model here is a good resource. In such a setup, there is a sorted queue of event listeners. For a GUI, this ...


4

Flowcharts and diagrams are very often used to represent game mechanics or game-play. I would dare to say that most visual assessment of game mechanics are indeed based on some given type of flowchart or diagram. Now, there is no specific standard on the specifics of what should be represented in such diagrams. But of course there are quite a few ...


2

One possible way to decouple this example would be to use a stack of event handlers. Your program can iterate the stack in order, trying each listener until one handles the event: class MenuState : public IKeyListener { ... boolean OnKeyEvent(const KeyEvent& keyCommand) { if (keyCommand.Key == Keys.Enter && keyCommand.IsPressed) ...


1

You can use the "legacy" feature to offer diversity to the game. Digimon World is a game where you train/raise a digimon that can evolve, a little like in the Gameboy Pokemon game. Your digimon may die from being old and defeated (although death by fight is not automatic if I remember well). When it dies, you can pick its egg which is a baby digimon that ...



Only top voted, non community-wiki answers of a minimum length are eligible