aboutsummaryrefslogtreecommitdiff
path: root/enemiesattacks
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 /enemiesattacks
parent02038990a93c0b4cf58269b5456327ea64b998b7 (diff)
Add laser animation and change animation steps to decrement
Diffstat (limited to 'enemiesattacks')
-rw-r--r--enemiesattacks/basic.gbasm44
1 files changed, 23 insertions, 21 deletions
diff --git a/enemiesattacks/basic.gbasm b/enemiesattacks/basic.gbasm
index 882b1ae..64805eb 100644
--- a/enemiesattacks/basic.gbasm
+++ b/enemiesattacks/basic.gbasm
@@ -3,28 +3,30 @@ Basic_Attack: ; Direction to face in E. Result in BC (XY), Direction in D
OR $10
LD D, A
- LD A, $01
- LD $mem_bunny_status, A
- LD A, $02
- LD $mem_bunny_flags, A
- LD A, $mem_bunny_direction
- AND $07
- LD $mem_bunny_direction, A
- CALL =Fix_Bunny_screen
+ ; For Future Attacks: This is an attack that would freeze the bunny and move -4 x the entity
+ ; LD A, $01
+ ; LD $mem_bunny_status, A
+ ; LD A, $02
+ ; LD $mem_bunny_flags, A
+ ; LD A, $mem_bunny_direction
+ ; AND $07
+ ; LD $mem_bunny_direction, A
+ ; CALL =Fix_Bunny_screen
- LD A, B
- SUB $04
- LD B, A
- ; LD A, $mem_bunny_health
- ; SUB $01
- ; JR C, =.health_underflow_fix
- ; DAA
- ; LD $mem_bunny_health, A
- ; JR =.Skip_health_underflow_fix
+ ; LD A, B
+ ; SUB $04
+ ; LD B, A
- ; .health_underflow_fix:
- ; LD A, $00
- ; LD $mem_bunny_health, A
- ; .Skip_health_underflow_fix:
+ LD A, $mem_bunny_health
+ SUB $01
+ JR C, =.health_underflow_fix
+ DAA
+ LD $mem_bunny_health, A
+ JR =.Skip_health_underflow_fix
+
+ .health_underflow_fix:
+ LD A, $00
+ LD $mem_bunny_health, A
+ .Skip_health_underflow_fix:
RET