Crate tatami_dungeon

Source
Expand description

Tatami is a roguelike dungeon generation algorithm that creates a multi-floor dungeon layout from a series of randomly oriented, interconnected rectangles.

The library attempts to provide many of the common features found in roguelikes, such as stairs, teleporters, items, enemies and traps. It is intended to be used as a base upon which a fully featured game can be built on.

Structs§

CellConnection
A connection in the mock-up.
Connection
Connection from one room to another.
DirectionIter
An iterator over the variants of Direction
Dungeon
A procedurally generated dungeon, complete with rooms, items and enemies.
Enemy
An enemy that moves toward and attacks the player.
Floor
A floor of the dungeon.
GenerateDungeonParams
The parameters used to generate a dungeon.
Item
An item that can be used to equipped by the player.
Position
X and Y position of a tile.
Room
A traversable room in the dungeon.
Stair
Stairs leading to a different floor.
Teleporter
Teleporter providing instant transportation to another on the same floor.
Trap
A trap that is hidden from the player and creates a negative effect when stepped on.

Enums§

Direction
Cardinal directions iterated in clockwise order.
RoomKind
Type of room.
Tile
A single tile in the dungeon.