ui: the UI window is now taller.
authorLukas Krickl <lukas@krickl.dev>
Sat, 3 Jan 2026 12:05:06 +0000 (13:05 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sat, 3 Jan 2026 12:05:06 +0000 (13:05 +0100)
src/defs.s
src/player.s
src/ui.s

index cd15477cd63757579f93232320f7700a6d2c5420..3b0875c573abd24bfaf6b68ce6afa474f892a89d 100644 (file)
@@ -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
index 4473a8c33e02b6226dafb552cc3cfaef0ca7317c..d10c36d120be867ba3566151fe6aef87d0cccdb2 100644 (file)
@@ -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
index 964df471fe800c1094fe81cf6113fb0974a7a2ef..22684a47a4ca422585d2348f324d3254eb23da61 100644 (file)
--- 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