Drawing Rooms in MazeBand

I got it so that your character moves around when you press the movement keys. That seemed like good progress. Now it is time for the main part of my game - the maze.

Everything about programming the maze is math. Sure it is just 2D math. But you got to get the details right. I got some rooms being randomly drawn. However they are all clustered in the upper left hand corner of the screen. And they always overlap.

I think I just need to tweak some values being passed into my random number generator. Then I need to code the rules that throw out a random room if it overlaps another. Then I will be off to the races to connect the rooms. Will I be done? No. But I will have achieved my goal - which is the MazeBand.

No comments: