From 2d3c9b2c70e56d9037188bf3b9c94a7a444dff70 Mon Sep 17 00:00:00 2001 From: Ashley N Date: Mon, 4 Sep 2023 20:33:07 +0000 Subject: [PATCH] Update Design Doc: `level` tool --- Design-Doc%3A-%60level%60-tool.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Design-Doc%3A-%60level%60-tool.md b/Design-Doc%3A-%60level%60-tool.md index 553edca..37b5f87 100644 --- a/Design-Doc%3A-%60level%60-tool.md +++ b/Design-Doc%3A-%60level%60-tool.md @@ -35,4 +35,19 @@ health = { value = 255 } } -``` \ No newline at end of file +``` + +## .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 !!) \ No newline at end of file