diff options
| author | dannye <corrnondacqb@yahoo.com> | 2015-07-04 00:44:12 -0500 |
|---|---|---|
| committer | dannye <corrnondacqb@yahoo.com> | 2015-07-04 00:47:29 -0500 |
| commit | f702fc7840e30f00c840ce619a1ea15d763438de (patch) | |
| tree | e28c8b27278228f95139f7a73daf214ac680014e /home | |
| parent | More TX_ASM (diff) | |
| download | pokeyellow-f702fc7840e30f00c840ce619a1ea15d763438de.tar.gz pokeyellow-f702fc7840e30f00c840ce619a1ea15d763438de.tar.xz pokeyellow-f702fc7840e30f00c840ce619a1ea15d763438de.zip | |
Start using text predef macros
also sprite direction constants
Diffstat (limited to 'home')
| -rw-r--r-- | home/overworld.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/home/overworld.asm b/home/overworld.asm index 4aea2102..0e62a932 100644 --- a/home/overworld.asm +++ b/home/overworld.asm @@ -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 |
