aboutsummaryrefslogtreecommitdiff
path: root/entity/display.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-10-22 18:01:00 +0900
committerAstatin <[email protected]>2024-10-22 18:01:00 +0900
commit5513939c6077032f625c2de98f395026caf063b1 (patch)
tree8f247591201ab9804c31990674cb444cf87ec089 /entity/display.gbasm
parentf5183a78e20deaa9a294250873f3b5ee5cedafa3 (diff)
Add white window at the top for future health bar
Diffstat (limited to 'entity/display.gbasm')
-rw-r--r--entity/display.gbasm8
1 files changed, 4 insertions, 4 deletions
diff --git a/entity/display.gbasm b/entity/display.gbasm
index 67ee30d..a33a6cc 100644
--- a/entity/display.gbasm
+++ b/entity/display.gbasm
@@ -96,7 +96,7 @@ Display_Entity:
JR Z, =Display_Entity.Viewport_offset_up
Display_Entity.Viewport_offset_left:
- LD A, $reg_viewport_x
+ LD A, $mem_prepared_viewport_x
SUB $08
AND $0f
XOR $ff
@@ -108,7 +108,7 @@ Display_Entity:
JR =Display_Entity.Viewport_offset_end
Display_Entity.Viewport_offset_right:
- LD A, $reg_viewport_x
+ LD A, $mem_prepared_viewport_x
SUB $08
AND $0f
XOR $ff
@@ -120,7 +120,7 @@ Display_Entity:
JR =Display_Entity.Viewport_offset_end
Display_Entity.Viewport_offset_up:
- LD A, $reg_viewport_y
+ LD A, $mem_prepared_viewport_y
SUB $08
AND $0f
XOR $ff
@@ -133,7 +133,7 @@ Display_Entity:
JR =Display_Entity.Viewport_offset_end
Display_Entity.Viewport_offset_down:
- LD A, $reg_viewport_y
+ LD A, $mem_prepared_viewport_y
SUB $08
AND $0f
XOR $ff