Update Design Doc: `level` tool

master
Ashley N. 2023-09-04 20:33:07 +00:00
parent 2d1ff86ac2
commit 2d3c9b2c70
1 changed files with 16 additions and 1 deletions

@ -36,3 +36,18 @@ health = {
}
}
```
## .lvl Format
The .lvl format is output by the `level` tool. It is a binary format ideal for use on a 8-bit or 16-bit game console.
### Header
4 bytes: Magic number, 'LEVL' in ASCII. This is useful to quickly evaluate problems with bundling assets in your build.
### Map Unit Size
1 byte: The unit size for each tile. On Sega Mega Drive this is 8, for 8x8 tile.
### Map Tile Size
1 byte: The width _in number of tiles_ of each entry in the level map.
1 byte: The height _in number of tiles_ of each entry in the level map.
(TBD !!)