Skip to main content

The world

Home · The engine in ten minutes · LevelBlockRuntime

In brief​

The game has sixteen levels. Each is a grid of 32 × 32 blocks, and each block has four faces holding wall references and a floor where items lie. A level is built from its files: the level's INF file names the MAZ map that gives each block its four walls, and adds monsters, scripts and the bindings between blocks and scripts. Some levels have a second sublevel record that changes their monsters, doors and walls for part of the level.

The party changes level only through scripts (stairs, pits, portals) or by starting a new game or loading a saved one. When the party leaves a level, the game keeps its changed state in a temporary file and restores it on return. Doors open and close by changing the wall references of their block. The party steps into a neighboring block only through a wall that lets it pass, and never into a block that holds a monster.

The sixteen levels and the level changes of the original scripts. Each level is coloured by its graphics set: forest for level 4; dung for levels 1, 2 and 3; mezz for 5, 6 and 10 to 14; silver for 7, 8 and 9; crimson for 15 and 16. Solid lines are stairs, entrances and scenes, both ways unless an arrow shows one way: 4 with 5 and 1; 1 with 5 and 2; 2 with 3; 5 with 6 and 7; 7 with 8; 8 with 9; 9 to 5; 6 with 10 and 15; 15 to 16; 10 with 11; 11 with 12; 12 with 13 and 14. Dotted arrows are pits: 1 to 2, 11 to 10, 12 to 11, 13 to 14 and 14 to 11. Thick orange lines are portals: levels 3, 6 and 14 lead to one another and to 16.
A new game starts on level 4, in the forest; every other level is reached through scripts: stairs, pits and portals.

The pages of this chapter​

PageWhat it covers
Blocks, directions and positionsThe grid, [XX:YY] positions, directions, the faces of a block and the floor positions.
Changing levelWhen the game loads a level, the level changes of the original scripts, coming back to a level.
SublevelsThe levels with two sublevel records, and what carries over from one to the other.
Walls and doorsWhat a wall lets through, how a door opens and closes, faces a level does not map.
Interacting with wallsWall decorations, switches and forcing a stuck door.
Moving the partyThe step test, the events a step sends, what the party sees.
The levelsEach of the sixteen levels, its map and its scripts.

How the game reads the level files is described in level data.

Doors across this site​

A door is a wall face whose wall reference moves, step by step, between a closed and an open state; see walls and doors. Doors appear on several other pages:

Sources​

Each page of this chapter ends with its own sources. The level connections come from the decoded scripts of the 16 INF files; see changing level.