projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
628b9a9
)
ui: Added placeholder for enemy hp bar
author
Lukas Krickl
<lukas@krickl.dev>
Thu, 23 Oct 2025 03:24:07 +0000
(
05:24
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Thu, 23 Oct 2025 03:24:07 +0000
(
05:24
+0200)
src/ui.s
patch
|
blob
|
history
diff --git
a/src/ui.s
b/src/ui.s
index c4d3ef6704fc80c67497cf7ad2410fb1e31f599e..7760062542f7eff1b67ea0b64b5db3fa593bae90 100644
(file)
--- a/
src/ui.s
+++ b/
src/ui.s
@@
-76,7
+76,11
@@
ui_draw_enemy_hp:
ld de, UI_ENEMY_HP
ld hl, str_enemy
call puts
- ret
+
+ ld hl, UI_ENEMY_HP+7
+ ld a, HP_MAX ; TODO: load real hp
+ ld b, a
+ jp ui_draw_hp
; draws current score
ui_draw_score: