From: Lukas Krickl Date: Tue, 10 Feb 2026 15:36:59 +0000 (+0100) Subject: defs: Added tileindex enum X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=68ed1190db1c5f395bd98767b0eb75e07f008b98;p=gbrg%2F.git defs: Added tileindex enum --- 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