From a31a77f05c5535f325d5560e70afdd91b6e6d9d4 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 17 Mar 2025 05:22:12 +0100 Subject: [PATCH] defs: Tiles now have an offset to refer to a head tile This head tile is used to point to a tile that manages to overall state of multi-tile structures. --- src/defs.s | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/defs.s b/src/defs.s index 472bc9c..a845223 100644 --- a/src/defs.s +++ b/src/defs.s @@ -43,4 +43,10 @@ .de c_fire, 1 .de c_occupation, 1 .de c_other, 2 + ; offset to head tile for thsi tile + ; if offset is 0000 this is the head tile + ; head tiles are tiles that manage the state of a + ; multi-tile object + ; the head tile is located at c_type - [c_head_offset] +.de c_head_offset, 2 .de c_size, 0 -- 2.30.2