Tag Archives: Roguelike

Smooth Roguelike Movement 2

This example is almost exactly the same as the last Smooth Roguelike Movement example.  In this example though the player will continuously move 1 grid space (32×32) while the movement key is held down.  If the movement key is released while the player is not bound to the grid, the player will carry on until it reaches the next grid space, making sure the player is always aligned to the grid correctly.

PREVIEW

DOWNLOAD

Advertisements

Dungeon/Cave Generation 1

An example of how you can simply create a randomly generated dungeon/cave for your games.  The example uses a “digging” approach to create the dungeon.  It stores the dungeon data  in an Array and tiles it using the “Tilemap” object.  It’s a nice start to adding a procedurally generated level to your game and can be easily expanded upon.

PREVIEW

DOWNLOAD

Smooth Roguelike Movement 1

Here is another method for creating roguelike movement.  This time instead of the player “jumping” to his new position, it slides smoothly into position.  This would be better if your player sprite had an nice animated “walk cycle”.  The player movement is still per button press and is still bound to a grid (32×32) but gives the illusion that it isn’t.

DOWNLOAD