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.




3 thoughts on “Dungeon/Cave Generation 1”

  1. How would you select layouts randomly at the start of every game? Say that you have Layouts 1 – 10 and you don’t want Layout 1 to be the first one every time a game is started.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s