Cripes 2.0: Maze Generation DONE!

Published February 13, 2009
Advertisement
I'm practically dancing in my seat right now! :D I just finished the maze generation. I basically have a MapLoader class with a pure virtual function called Generate(), which takes a width and a height, and returns a vector of Entities (presumably the walls). I derived a MazeGen class from it, which implements a maze-building algorithm and then creates and positions wall and corner entities based on the algorithm results. I haven't added in any code to randomly remove walls, so it's a basic maze right now. Still, I just had to take a screenshot!



Wooooooooooooooooooooo. :D

It takes over a full second to load each maze, unfortunately, because I have so many corner entities. I'm hoping that my random-wall-removal will help mitigate that, but we'll see.

EDIT: Matched the cell sizes to the original Snipes. Each is 8 chars wide, 6 chars high. I wasn't expecting the discrepancy... Also, made my walls blue. So so so much better. It looks almost real! Now for collision detection... well, tomorrow. *yawn*
0 likes 4 comments

Comments

benryves
That looks really nifty. [grin] Top work!
February 13, 2009 04:52 AM
Twisol
Thanks! ^_^
February 13, 2009 04:57 AM
Saint Retro
Looking good. Be interesting to see how this develops :)
February 13, 2009 08:52 AM
matt_j
eeeeeeeeeeeeeeee! I'm eeeexcited for this!
February 13, 2009 09:55 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement