diff --git a/Design-Doc%3A-%60level%60-tool.md b/Design-Doc%3A-%60level%60-tool.md index 63223af..689cd1f 100644 --- a/Design-Doc%3A-%60level%60-tool.md +++ b/Design-Doc%3A-%60level%60-tool.md @@ -38,17 +38,26 @@ 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. +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 -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 -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 -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 !!) \ No newline at end of file