Update Design Doc: `level` tool

master
Ashley N. 2023-09-04 21:37:58 +00:00
parent 968e93b009
commit 8b3b15d524
1 changed files with 14 additions and 5 deletions

@ -38,17 +38,26 @@ health = {
``` ```
## .lvl Format ## .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. 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. All coordinates use (0,0) upper left as an origin.
### Header ### Header
4 bytes: Magic number, 'LEVL' in ASCII. This is useful to quickly evaluate problems with bundling assets in your build. * 4 bytes: Magic number, 'LEVL' in ASCII. This is useful to quickly evaluate problems with bundling assets in your build.
### Map Unit Size ### Map Unit Size
1 byte: The unit size for each tile. On Sega Mega Drive this is 8, for 8x8 tile. * 1 byte: The unit size for each tile. On Sega Mega Drive this is 8, for 8x8 tile.
### Map Tile Size ### Map Tile Size
1 byte: The width _in number of tiles_ of each entry in the level map. * 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.
1 byte: The height _in number of tiles_ of each entry in the level map. ### Component Data
(TBD !!(
### Entity Data
* 2 bytes: The number of entities.
For (number of entities):
* 1 byte: X position of entity
* 1 byte: Y position of entity
(TBD !!) (TBD !!)