From 15a0b0f987c38d571f1884065af91d38e1cd3e06 Mon Sep 17 00:00:00 2001 From: Ashley N Date: Sun, 24 Sep 2023 16:18:42 +0000 Subject: [PATCH] Update Design Doc: `level` tool --- Design-Doc%3A-%60level%60-tool.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Design-Doc%3A-%60level%60-tool.md b/Design-Doc%3A-%60level%60-tool.md index 3a5ec7f..b635e9d 100644 --- a/Design-Doc%3A-%60level%60-tool.md +++ b/Design-Doc%3A-%60level%60-tool.md @@ -68,6 +68,17 @@ While the above format contains the graphics, this contains the nametable settin ### .lvc Format (Level Collision Map) The collision map is just an array of 8-bit unsigned integers laid out with the same tile dimensions as your visible layers. 0 is a free area, while 1 is a collision area. +### .spt Format (Sprite Table) +The Sprite Table contains a mapping of sprites to tile indices, as well as their tile dimensions and number of animation frames. +``` +2 Bytes: Number of Sprites +For (Number of Sprites): + 1 Byte: Sprite ID + 1 Byte: Tile index location (in tiles.bin) + 1 Byte: Sprite Width (tiles) + 1 Byte: Sprite Height (tiles) +``` + ### .ecs Format (Entity-Component System) This file contains the entity-component system defined by the [attributes](#entity-component-system) set in Tiled Map Editor's object layer(s).