aboutsummaryrefslogtreecommitdiff
path: root/main.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-09-10 16:10:59 +0900
committerAstatin <astatin@redacted>2024-09-10 16:10:59 +0900
commitc3d302cd8332d55bb477b5e93ea0f6027d26c632 (patch)
tree2f050fc21968051e95b624c1dff5c63533bf395f /main.gbasm
parent8a69fd747d22206afe4ea31a743e58070699b3d9 (diff)
Optimize object displays and preload map scrolling to stay in VBlank
Diffstat (limited to 'main.gbasm')
-rw-r--r--main.gbasm6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.gbasm b/main.gbasm
index f96b893..ad1fa44 100644
--- a/main.gbasm
+++ b/main.gbasm
@@ -10,6 +10,7 @@ New_Dungeon:
CALL =Initialize_Objects
CALL =Load_Tile
CALL =Load_Map
+ CALL =Load_Objects
; LCDC
LD A, $87
@@ -21,8 +22,8 @@ New_Dungeon:
JP =Wait_for_VRAM.loop
VBLANK_Entrypoint:
- CALL =Display_Scrolling_Map
- CALL =Display_Objects
+ CALL =Display_Prepared_Block
+ CALL =Display_Object
CALL =Display_Entities
CALL =Object_Interactions_Check
@@ -30,6 +31,7 @@ VBLANK_Entrypoint:
CALL =Pad_Button_Check
CALL =Move_Bunny
+ CALL =Prepare_Scrolling_Map
RET
.INCLUDE "tiles.gbasm"