Const
The two terrain kinds every dungeon needs: wall (index 0) and floor (index 1). A game appends its own kinds (traps, doors) after these via DungeonOptions.kinds.
DungeonOptions.kinds
import { DUNGEON_KINDS } from '@datamoc/mw_games/roguelike';const kinds = [...DUNGEON_KINDS, { passable: false, transparent: true }]; // + a window Copy
import { DUNGEON_KINDS } from '@datamoc/mw_games/roguelike';const kinds = [...DUNGEON_KINDS, { passable: false, transparent: true }]; // + a window
The two terrain kinds every dungeon needs: wall (index 0) and floor (index 1). A game appends its own kinds (traps, doors) after these via
DungeonOptions.kinds.