mwg API
    Preparing search index...

    Variable WALLConst

    WALL: TerrainKind = ...

    The two terrain kinds every map needs; a game adds its own alongside.

    import { Level, WALL, FLOOR } from '@datamoc/mw_games/roguelike';

    const level = new Level(20, 15, [WALL, FLOOR], 0); // 0 = WALL, everything starts solid
    level.set(5, 5, 1); // 1 = FLOOR
    console.log(level.passable(5, 5)); // true