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 /entity/init.gbasm | |
parent | 507a9876b85f47ff81cc9150bea858eec064ba05 (diff) |
Refactoring the animations/directions + entities turn function with macros + finishing froge
Diffstat (limited to 'entity/init.gbasm')
-rw-r--r-- | entity/init.gbasm | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/entity/init.gbasm b/entity/init.gbasm index 80e3848..38d3141 100644 --- a/entity/init.gbasm +++ b/entity/init.gbasm @@ -65,6 +65,9 @@ Initialize_Entities: INC HL LD A, $enum_direction_down + LD (HL), A + SWAP A + OR (HL) LD (HL+), A ; Turn @@ -128,22 +131,6 @@ Initialize_Entities: OR $08 LD $mem_prepared_viewport_y, A - LD A, $mem_bunny_direction - BIT 3, A - RET Z - - LD A, $mem_bunny_direction - DEC A - XOR $01 - INC A - LD D, A - LD A, $mem_viewport_x - LD B, A - LD A, $mem_viewport_y - LD C, A - LD A, $mem_moving_animation_step - .ADD_A_TO_DIRECTION_BC - RET Initialize_Enemy: ; HL => pointer to entity struct |