mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Start using text predef macros
also sprite direction constants
This commit is contained in:
parent
bc6f0bc08a
commit
f702fc7840
36 changed files with 225 additions and 219 deletions
|
|
@ -1120,7 +1120,7 @@ IsSpriteInFrontOfPlayer2:: ; 0b6d (0:0b6d)
|
|||
ld bc,$3c40 ; Y and X position of player sprite
|
||||
ld a,[wSpriteStateData1 + 9] ; direction the player is facing
|
||||
.checkIfPlayerFacingUp
|
||||
cp a,$04
|
||||
cp SPRITE_FACING_UP
|
||||
jr nz,.checkIfPlayerFacingDown
|
||||
; facing up
|
||||
ld a,b
|
||||
|
|
@ -1129,7 +1129,7 @@ IsSpriteInFrontOfPlayer2:: ; 0b6d (0:0b6d)
|
|||
ld a,$08
|
||||
jr .doneCheckingDirection
|
||||
.checkIfPlayerFacingDown
|
||||
cp a,$00
|
||||
cp SPRITE_FACING_DOWN
|
||||
jr nz,.checkIfPlayerFacingRight
|
||||
; facing down
|
||||
ld a,b
|
||||
|
|
@ -1138,7 +1138,7 @@ IsSpriteInFrontOfPlayer2:: ; 0b6d (0:0b6d)
|
|||
ld a,$04
|
||||
jr .doneCheckingDirection
|
||||
.checkIfPlayerFacingRight
|
||||
cp a,$0c
|
||||
cp SPRITE_FACING_RIGHT
|
||||
jr nz,.playerFacingLeft
|
||||
; facing right
|
||||
ld a,c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue