aboutsummaryrefslogtreecommitdiff
path: root/animations
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 /animations
parent57326c9acf9cbb025d54093fb90fd70614659400 (diff)
Add laser enemy attack
Diffstat (limited to 'animations')
-rw-r--r--animations/laser.gbasm5
-rw-r--r--animations/rotatingball.gbasm5
-rw-r--r--animations/sparkles.gbasm4
3 files changed, 8 insertions, 6 deletions
diff --git a/animations/laser.gbasm b/animations/laser.gbasm
index fba2df4..5c70eaf 100644
--- a/animations/laser.gbasm
+++ b/animations/laser.gbasm
@@ -100,8 +100,6 @@ Laser_Animation:
LD HL, $mem_oam_buffer
LD A, $mem_oam_buffer_low
LD L, A
- ADD $08
- LD $mem_oam_buffer_low, A
LD A, C
LD (HL+), A
@@ -113,6 +111,9 @@ Laser_Animation:
LD A, $00
LD (HL+), A
+ LD A, L
+ LD $mem_oam_buffer_low, A
+
POP HL
RET
diff --git a/animations/rotatingball.gbasm b/animations/rotatingball.gbasm
index 2d89cbe..e7e4cbd 100644
--- a/animations/rotatingball.gbasm
+++ b/animations/rotatingball.gbasm
@@ -67,8 +67,6 @@ Rotating_Ball_Animation:
LD HL, $mem_oam_buffer
LD A, $mem_oam_buffer_low
LD L, A
- ADD $08
- LD $mem_oam_buffer_low, A
LD A, (DE)
ADD C
@@ -84,6 +82,9 @@ Rotating_Ball_Animation:
LD A, $00
LD (HL+), A
+ LD A, L
+ LD $mem_oam_buffer_low, A
+
POP HL
RET
diff --git a/animations/sparkles.gbasm b/animations/sparkles.gbasm
index 166332c..f91f45c 100644
--- a/animations/sparkles.gbasm
+++ b/animations/sparkles.gbasm
@@ -55,8 +55,6 @@ Sparkle_Animation:
LD HL, $mem_oam_buffer
LD A, $mem_oam_buffer_low
LD L, A
- ADD $08
- LD $mem_oam_buffer_low, A
LD D, E
SRA D
@@ -94,6 +92,8 @@ Sparkle_Animation:
LD A, $00
LD (HL+), A
+ LD A, L
+ LD $mem_oam_buffer_low, A
POP HL
RET