Thursday, May 19, 2011

Flash procedural perfect cave generation

Today I’ll show you a procedural way to generate perfect caves, to be used in roguelike games.

The roguelike is a sub-genre of role-playing video games, characterized by randomization for replayability, permanent death, and turn-based movement. Most roguelikes feature ASCII graphics, with newer ones increasingly offering tile-based graphics. Games are typically dungeon crawls, with many monsters, items, and environmental features. Computer roguelikes usually employ the majority of the keyboard to facilitate interaction with items and the environment. The name of the genre comes from the 1980 game Rogue (source).

Please note I said “perfect cave” but I do not mean “better than the rest”, but a cave in which every tile can be reached from any other tile without jumping through walls.

This is the code [...]

Read more: Flash procedural perfect cave generation

No comments:

Post a Comment