From e6bf7e77797103ee7ab0eda57c360c38f1b2089c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 2 Sep 2025 18:41:59 -0700 Subject: Add map orientation. --- include/isogfx/asset.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/isogfx/asset.h b/include/isogfx/asset.h index 6050500..361ffcd 100644 --- a/include/isogfx/asset.h +++ b/include/isogfx/asset.h @@ -43,6 +43,16 @@ typedef struct Ts_TileSet { // Tile map (TM) file format. // ----------------------------------------------------------------------------- +typedef enum Tm_Orientation { + Tm_Orthogonal = 0, + Tm_Isometric = 1, +} Tm_Orientation; + +typedef struct Tm_Flags { + Tm_Orientation orientation : 1; + int unused : 15; +} Tm_Flags; + typedef struct Tm_Layer { Tile tiles[1]; // Count: world_width * world_height. } Tm_Layer; @@ -54,6 +64,7 @@ typedef struct Tm_Map { uint16_t base_tile_width; uint16_t base_tile_height; uint16_t num_layers; + uint16_t flags; // Tm_flagsFlags Tm_Layer layers[]; // Count: num_layers. } Tm_Map; -- cgit v1.2.3