From 329953d54d3d07b517dcff391a40229acd89bd59 Mon Sep 17 00:00:00 2001 From: Astatin Date: Fri, 7 Mar 2025 18:07:40 +0900 Subject: Add floor counter + a lot of little bug fixes --- entity/fox.gbasm | 7 ++++--- entity/init.gbasm | 13 ++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'entity') diff --git a/entity/fox.gbasm b/entity/fox.gbasm index 5e225ec..89df17e 100644 --- a/entity/fox.gbasm +++ b/entity/fox.gbasm @@ -149,9 +149,10 @@ Fox_Turn: JR Z, =.End_movement.end CALL =Laser_sight_check - LD A, E - CP $00 - JR Z, =.laser_sight_check_fail + LD A, D + AND $07 + CP E + JR NZ, =.laser_sight_check_fail CALL =Laser_Enemy_Attack diff --git a/entity/init.gbasm b/entity/init.gbasm index 76c96b4..970607b 100644 --- a/entity/init.gbasm +++ b/entity/init.gbasm @@ -74,8 +74,19 @@ Initialize_Entities: LD A, $00 LD (HL+), A + INC HL ; skip health + + LD A, $00 + + ; Flags + LD (HL+), A + + ; Status + LD (HL+), A + LD A, L - ADD $0a + AND $f0 + ADD $10 LD L, A LD A, $00 -- cgit v1.2.3-70-g09d2