From 9a3858252073f76c9207d47bb801e569c9221492 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 3 Jan 2026 13:05:06 +0100 Subject: [PATCH] ui: the UI window is now taller. --- src/defs.s | 2 +- src/player.s | 2 +- src/ui.s | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/defs.s b/src/defs.s index cd15477..3b0875c 100644 --- a/src/defs.s +++ b/src/defs.s @@ -20,7 +20,7 @@ #define RAND_MAGIC 0x1B #define SRAND_INITIAL 0x19 -#define WINDOW_Y 112 +#define WINDOW_Y 112-16 #define WINDOW_X 1 #define UI_TILE_WIDTH 32 diff --git a/src/player.s b/src/player.s index 4473a8c..d10c36d 100644 --- a/src/player.s +++ b/src/player.s @@ -81,7 +81,7 @@ player_update: ret -#define PLAYER_WEAPON_Y 96 +#define PLAYER_WEAPON_Y WINDOW_Y-16 #define PLAYER_WEAPON_X 120 ; draws part of player weapon diff --git a/src/ui.s b/src/ui.s index 964df47..22684a4 100644 --- a/src/ui.s +++ b/src/ui.s @@ -35,7 +35,7 @@ ui_update: ui_draw: ; draw minimap to ui - ld hl, SCRN1 + 16 + ld hl, SCRN1 + 32 * 2 + 16 ld de, 29 ; offset for next row ; row 0 @@ -130,11 +130,11 @@ compass_draw: ; y - ld a, 136 + ld a, WINDOW_Y + 40 ld [hl+], a ; x - ld a, 138 + ld a, WINDOW_X+137 ld [hl+], a ; tile -- 2.30.2