Jump to content

  • Log In with Google      Sign In   
  • Create Account


Dungeon/ Maze generator


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 catchthefloaty   Members   -  Reputation: 137

Posted 12 April 2013 - 06:31 PM

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, 12 April 2013 - 09:24 PM.


Sponsor:

#2 LoneWolfe007   Members   -  Reputation: 130

Posted 17 April 2013 - 03:23 PM

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?

#3 catchthefloaty   Members   -  Reputation: 137

Posted 18 April 2013 - 03:41 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS