aboutsummaryrefslogtreecommitdiff
path: root/entity
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-02-06 17:46:09 +0900
committerAstatin <[email protected]>2025-02-06 17:46:09 +0900
commitca26030e800318d48aec501e6f470eea8d4299c0 (patch)
tree6689870d29be11acd2b003059c01a199de68e88c /entity
parent3b67c86b61b5d8640860dd5e8b016790ee4814c3 (diff)
Add energy points to the gui
Diffstat (limited to 'entity')
-rw-r--r--entity/display.gbasm12
1 files changed, 12 insertions, 0 deletions
diff --git a/entity/display.gbasm b/entity/display.gbasm
index d9baff7..69da0ab 100644
--- a/entity/display.gbasm
+++ b/entity/display.gbasm
@@ -78,6 +78,18 @@ Display_Entity:
ADD $06
LD C, A
+ .Check_Window_Overlap:
+ LD A, $mem_display_flag
+ BIT 3, A
+ JR Z, =.Check_Window_Overlap.end
+ LD A, $6f
+ CP B
+ JR NC, =.Check_Window_Overlap.end
+ LD A, $55
+ CP C
+ JP C, =.skip
+ .Check_Window_Overlap.end:
+
.ADD_MOVING_ANIMATION_OFFSET
LD A, (HL+)