aboutsummaryrefslogtreecommitdiff
path: root/animation.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-01-22 18:20:43 +0900
committerAstatin <[email protected]>2025-01-22 18:20:43 +0900
commit57326c9acf9cbb025d54093fb90fd70614659400 (patch)
treec8f396d56119fbfba1718e1891b9e9bd659f698f /animation.gbasm
parent02038990a93c0b4cf58269b5456327ea64b998b7 (diff)
Add laser animation and change animation steps to decrement
Diffstat (limited to 'animation.gbasm')
-rw-r--r--animation.gbasm6
1 files changed, 4 insertions, 2 deletions
diff --git a/animation.gbasm b/animation.gbasm
index a10b01e..1307796 100644
--- a/animation.gbasm
+++ b/animation.gbasm
@@ -9,6 +9,7 @@ Display_Animation:
PUSH HL
LD A, (HL)
+ AND $3f
LD BC, =Animation_Jump_table
.JUMP_TABLE
@@ -19,7 +20,7 @@ Display_Animation:
RET
-Try_Launch_Animation: ; XY in BC, jump_table index in A
+Try_Launch_Animation: ; XY in BC, jump_table index in A, number of steps in E
PUSH HL
PUSH AF
@@ -60,7 +61,7 @@ Try_Launch_Animation: ; XY in BC, jump_table index in A
LD (HL+), A
LD A, C
LD (HL+), A
- XOR A
+ LD A, E
LD (HL+), A
POP HL
@@ -88,3 +89,4 @@ Animation_Jump_table:
.INCLUDE "animations/sparkles.gbasm"
.INCLUDE "animations/rotatingball.gbasm"
+.INCLUDE "animations/laser.gbasm"