Jump to content
  • Advertisement
Sign in to follow this  

Dungeon/ Maze generator

This topic is 1862 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

so i made a dungeon/maze generator.
-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!



currently only a windows .exe



Edited by catchthefloaty

Share this post

Link to post
Share on other sites
That is really cool. I commend you on your ability to create that. Do you have a plan on what your going to use that for? Maybe like a top view dungeon crawler or a maze game?

Share this post

Link to post
Share on other sites
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  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!