Level Maker

While starting work on a new project I ended up devising a simple way of making room levels for a top down game. It uses a single sprite as a block and placing this in multiple places to form the walls. The level can be planned out in a 2d dimensional array of integer values. A 1 signifies a block and 0 signifies a blank. A loop then reads this array setting the positions based on the position in the array.

I will be doing more work on this finding some way of storing and loading different level layouts from within the program.

These two variations were made and changed in a short time with minimal effort.


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: