diff options
author | Astatin <[email protected]> | 2025-05-09 17:44:37 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-05-09 17:44:37 +0200 |
commit | b0f9e2e6d53983faa9d213b40d2bd6a23473e134 (patch) | |
tree | e8bf5eedd762203972afa10c6be79692767a3d2f /enemiesattacks/walk.gbasm | |
parent | 507a9876b85f47ff81cc9150bea858eec064ba05 (diff) |
Refactoring the animations/directions + entities turn function with macros + finishing froge
Diffstat (limited to 'enemiesattacks/walk.gbasm')
-rw-r--r-- | enemiesattacks/walk.gbasm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/enemiesattacks/walk.gbasm b/enemiesattacks/walk.gbasm index 5de471f..a11b32f 100644 --- a/enemiesattacks/walk.gbasm +++ b/enemiesattacks/walk.gbasm @@ -1,4 +1,4 @@ -Walking: ; entity XY in BC, Breaks DE +Walking: ; entity XY in BC, Breaks E, Direction result in D ; Is Bunny close enough to follow LD A, $mem_bunny_x SUB B @@ -24,6 +24,10 @@ Walking: ; entity XY in BC, Breaks DE INC A OR E LD D, A + AND $07 + SWAP A + OR D + LD D, A JP =.Check_Collision .Follow_bunny: @@ -123,6 +127,12 @@ Walking: ; entity XY in BC, Breaks DE LD C, E .skip_invert_axis2: + LD A, D + AND $07 + SWAP A + OR D + LD D, A + .Check_Collision: PUSH BC LD A, $01 |