Sign in to follow this  
catchthefloaty

Dungeon/ Maze generator

Recommended Posts

catchthefloaty    137

so i made a dungeon/maze generator.
features:
-player that can move around. arrow keys to control.
-walls. player cant move through. these are the black lines.
-doors. player can open by touching. these are the brown lines.
-can generate a new maze by pressing r key.
-generates a spiral shape, diffrent size each time.
-generates wall on outside of maze. not always visible as it usually goes off the camera.
-if hardware would support, could generate mazes infinately big.

-coded in python/pygame
 
tell me what you think!

https://docs.google.com/file/d/0B2XcMYh_ovyCd2hZUmVJZHZhazA/edit?usp=sharing

 

currently only a windows .exe

 

dungeonu.png

Edited by catchthefloaty

Share this post


Link to post
Share on other sites
catchthefloaty    137
The idea was to generate a dungeon out in a spiral.
It was only supposed to use one room at a time(like binding of Isaac) but rooms became more like tiles.
The numbers are the order in which they where generated.

A largely unused feature is that each tile is aware of which number tile is to it's left, right,top,bottom.

The physics code is horrendous and written by me other than the pygame rect.collide function. Learned enough to want to use a physics library next time.

Generation is random based on a formula I arbitrarily chose.lol.

Not sure what im going to do with it at this point... I've gotta optimize So much of it I might as well start over.lol

Share this post


Link to post
Share on other sites
Sign in to follow this