aboutsummaryrefslogtreecommitdiff
path: root/main.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-01-24 18:08:33 +0900
committerAstatin <[email protected]>2025-01-24 18:08:33 +0900
commit1a6621e5b1da42ee4b6b9132790ec744efc009c2 (patch)
tree89aeb457555655d2e4ed74a0fe32bfca74851a26 /main.gbasm
parent57326c9acf9cbb025d54093fb90fd70614659400 (diff)
Add laser enemy attack
Diffstat (limited to 'main.gbasm')
-rw-r--r--main.gbasm14
1 files changed, 10 insertions, 4 deletions
diff --git a/main.gbasm b/main.gbasm
index abed6e7..0988009 100644
--- a/main.gbasm
+++ b/main.gbasm
@@ -116,10 +116,6 @@ VBLANK_Entrypoint:
LD A, $palette_bold_font
LD $reg_bg_palette, A
- LD HL, $9c00
- LD A, $mem_bunny_health
- CALL =Print_8bit
-
LD HL, $9c12
LD A, $dbg_VBLANK_STATE
CALL =Print_8bit
@@ -130,6 +126,10 @@ VBLANK_Entrypoint:
LD A, $mem_current_mode
CP $enum_dungeon_mode
JR NZ, =Skip_VBlank_Dungeon_Update
+ LD HL, $9c00
+ LD A, $mem_bunny_health
+ CALL =Print_8bit
+
CALL =Display_Prepared_Block
CALL =Display_Object
Skip_VBlank_Dungeon_Update:
@@ -160,9 +160,15 @@ VBLANK_Entrypoint:
CALL =Respawn_Entities
CALL =Prepare_Scrolling_Map
+ LD A, $mem_current_mode
+ LD B, A
+ LD A, $mem_animation_wait_frames
+
Skip_Dungeon_Update:
+ LD A, $mem_current_mode
CALL =Loading_Mode_Regular
+ CALL =Animation_Wait_Mode
CALL =Update_Animation_Steps
CALL =Check_Open_Menu_button
CALL =Move_dialogue_cursor