From 68ed1190db1c5f395bd98767b0eb75e07f008b98 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 10 Feb 2026 16:36:59 +0100 Subject: [PATCH] defs: Added tileindex enum --- src/defs.s | 9 +++++++++ src/mapgen.s | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/defs.s b/src/defs.s index 62fc779..07e1f17 100644 --- a/src/defs.s +++ b/src/defs.s @@ -144,6 +144,15 @@ ; it perviously occupied gets this flag .de TT_BLOOD, 1 + ; tile index enum (order of tile ids in tile_table) +.se 0 +.de TI_WALL, 1 +.de TI_FLOOR, 1 +.de TI_DOOR, 1 +.de TI_INNER_WALL, 1 +.de TI_ROOM_END, 1 +.de TI_BLOOD, 1 + ; tile flags0 .se 1 diff --git a/src/mapgen.s b/src/mapgen.s index 7fbf8c6..614c056 100644 --- a/src/mapgen.s +++ b/src/mapgen.s @@ -5,7 +5,7 @@ ; writes tiles to mapgen_tiles map_generate: ; clear the map with wall tiles - ld d, 0 + ld d, TI_WALL ld hl, mapgen_tiles ld bc, MAP_TILES call memset -- 2.30.2