; draws the entire UI
; only call during blank
ui_draw_all:
+ call ui_clear_player_hp
call ui_draw_player_hp
call ui_draw_enemy_hp
ret
+ ; clears player hp
+ui_clear_player_hp:
+ ld hl, UI_PLAYER_HP+7
+ ld a, UI_WINDOW_BACKGROUND
+
+.rep i, 8, 1, ld [hl+], a
+
+ ret
+
; draws player hp
ui_draw_player_hp:
ld de, UI_PLAYER_HP
ld [hl+], a
@done:
+
+ ; clear the next index
+ ld a, UI_WINDOW_BACKGROUND
+ ld [hl+], a
+
ret
; draws boss hp