Basic Cave/Dungeon Generator

New tutorial for everyone.  This time we’re going to make a simple cave/dungeon generator. It is based on this example by subliminal on the TigSource forums.  Basically the generator picks a random direction either left/right/up/down every tick and creates a “floor” at the current position.  The example covers the following:

  1. Loops
  2. Random Numbers
  3. “For Each” loop
  4. Placing tiles
  5. Checking overlapping objects
  6. Zooming the Layout
  7. Sub Events
  8. Keyboard Controls

The tutorial is aimed at beginners and more advanced Construct users and was made with the current stable version of Construct 0.99.97.  The download link and some screenshots can be found in the full post.

Here are some of the cave/dungeons that the generator has created.  In all the screenshots the generator has looped only 1000 times, you can change this by changing the global variable “maxturns” in the events.

 

Generated Cave 1

 

Generated Cave 2

Generated Cave 3

 

Generated Cave 4

DOWNLOAD

Advertisements

About MrFlibble78

Very lazy and not very talented wannabe freeware game developer.

Posted on March 20, 2011, in Snippet and tagged , , , , . Bookmark the permalink. Leave a comment.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: