-
Notifications
You must be signed in to change notification settings - Fork 112
Architecture
Tom edited this page Sep 4, 2019
·
4 revisions
WIP: This page should give an overview of the concepts and processes used in the implementation of Brogue.
The dungeon is made up of 40 levels. Each level of the dungeon is made up of a fixed-size grid of cells. Each cell is made up of
- four layers of terrain tiles: dungeon, surface, liquid, and gas
- an optional creature
- an optional item
A cell has metadata describing e.g. whether it is visible, whether it has been discovered, etc. Terrain tiles only have metadata associated with their type, and none for their specific cells.
All inhabitants of the dungeon are creatures, including the player. Non-player creatures are called monsters.
Visibility is determined with the following definitions. A creature is
- revealed when it is entranced, telepathically linked, or the player has telepathy (i.e. its position is known when out of sight);
- hidden when it is submerged, invisible and not in gas, or dormant;
- seen when it is not hidden and either on a visible cell or is revealed (i.e. it has an entry in the sidebar)
The player is always seen.