I don't think I knew what direction I was going to go with it, so I called it TerrainGame because I started out by working on creating a randomized terrain with hills and valleys. As you can see from the image above, I ended up with a sort of contour line representation of the terrain, with each interval between lines going from darker to lighter for lower to higher elevation.
After being able to create random terrains, I came up with the idea of adding critters that base their movements on the terrain. In the code, red critters are called Divers, and blue critters are called Climbers. Divers always seek the lowest point, except when they head higher to mate with Climbers, and vice versa. This pretty much covers what the "game" does (see the GitHub page for full functionality), but in order to make it a bit more game-like, I created a Rider, which is a white square that rides on a critter, and can be moved to an adjacent critter with the arrow keys.
You can check out the full code over on GitHub, if you like, but I'll also include a
Update 04/06/2014: Edited to remove link to EXE file.
No comments:
Post a Comment