bukster
Member
|
# Posted: 20 May 2006 03:43 - Edited by: bukster
Reply
I think this is easily my best game. It was inspired by an old childhood favourite on my Sinclair ZX81 called Mazogs.
This took me about six months to program. The big challenge was to get the maze to create and function properly. As the maze is too big for the game to process continualy, I developed a system where each block creates a new block if there is a gap ahead of it or destroys itself if it is too far off the screen. So if you are walking in a direction, then the maze is continualy being created ahead of you and destroyed behind you.
This led to problems with how to account for items in the maze. Each on is created with a maze location. Wall is just wall, but between the walls are air items that you can walk through and can't see. If there is a treasure or monster, the air has a record of it. When it is created it makes the monster as well as itself. When it destroys itself it remembers what treasures or monsters were on it when this happened.
This means items like monster can move around and where they were when they walked off screen is remembered.
|