Wednesday 23 March 2011

Dynamic Level Generation Part 3

Next up is adding obstacles to the level. In order to get the maximum potential out of an obstacle, I want them to travel from the very left and right of the screen, so in order to allow for that, there must be no walls in the way.

So after the walls have been generated, when I want to add an obstacle to a row, I wipe the entire row of all walls, therefore the obstacle has the full width of the screen to move:

No comments:

Post a Comment