Maze level:
I have an idea of making a random maze generator where there are static points arranged across the level, and a rectangular block-rock image is randomly generated, spanning the gap between the points. To check to make sure the worms can reach each other, you would need an algorithm that runs through the maze and checks for enclosed areas that it can't reach, then it either remakes the level and try's again (this would be easier to program), or deletes one of the walls to get into the area. |