diff options
author | Astatin <[email protected]> | 2025-05-09 10:28:14 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-05-09 10:28:14 +0200 |
commit | 507a9876b85f47ff81cc9150bea858eec064ba05 (patch) | |
tree | 5b24e7836ce07ad8768d9c7ad7a1c6a2b3e92106 /entity/bunny.gbasm | |
parent | 4b02238d88af30c98b2f8d44e5200fb80b04bcad (diff) |
Refactor viewport to not need Fix_Bunny_Screen anymore and "fix" it before every frame
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r-- | entity/bunny.gbasm | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm index 46854b8..c58a645 100644 --- a/entity/bunny.gbasm +++ b/entity/bunny.gbasm @@ -167,29 +167,6 @@ Move_Bunny: LD $mem_entity_being_attacked_low, A .Delayed_Attack.end: - .2x_speed_middle_update: - LD A, $mem_bunny_flags - BIT 0, A - JR Z, =.2x_speed_middle_update.end - LD A, $mem_moving_animation_step - CP $07 - JR NZ, =.2x_speed_middle_update.end - - LD A, $mem_bunny_x - LD B, A - LD A, $mem_bunny_y - LD C, A - LD A, $mem_bunny_direction - LD D, A - LD A, $02 - .ADD_A_TO_DIRECTION_BC - LD A, B - LD $mem_bunny_x, A - LD A, C - LD $mem_bunny_y, A - DBG - .2x_speed_middle_update.end: - .End_movement: LD A, $mem_map_loading_flags BIT 3, A @@ -208,7 +185,7 @@ Move_Bunny: LD B, A LD A, $mem_bunny_y LD C, A - LD A, $01 + LD A, E .ADD_A_TO_DIRECTION_BC LD A, B LD $mem_bunny_x, A @@ -407,9 +384,6 @@ Center_viewport_around_entity: ; Entity pointer in HL BIT 0, (HL) JR Z, =.moving_animation_end SLA E - LD A, E - AND $0f - LD E, A .moving_animation_end: LD A, B |