From e283e5a27fc3003286a4d4ec80dfe4728cc637ef Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 9 Aug 2025 20:58:55 +0200 Subject: [PATCH] roompatterns: Defined door tiles as constants --- src/roompatterns.s | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/roompatterns.s b/src/roompatterns.s index ee10be7..1c4453b 100644 --- a/src/roompatterns.s +++ b/src/roompatterns.s @@ -99,6 +99,10 @@ room_pattern_special1: .db RPLW, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRF, RPRW .db RPBL, RPBW, RPBW, RPBW, RPBW, RPDB, RPBW, RPBW, RPBW, RPBW, RPBW, RPBW, RPBW, RPBR +#define DOOR_TILE_TOP 0x0E +#define DOOR_TILE_BOTTOM 0x2E +#define DOOR_TILE_LEFT 0x2C +#define DOOR_TILE_RIGHT 0x0C ; translation tables for tiles @@ -109,7 +113,7 @@ room_pattern_tile_translation: .db 0x44, 0x42 .db 0x00 ; floor ; doors - .db 0x2E, 0x0E, 0x0C, 0x2C + .db DOOR_TILE_BOTTOM, DOOR_TILE_TOP, DOOR_TILE_RIGHT, DOOR_TILE_LEFT ; roof .db 0x48 -- 2.30.2