mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
naming
This commit is contained in:
parent
e607199397
commit
1d86932cc9
29 changed files with 225 additions and 174 deletions
|
|
@ -591,14 +591,14 @@ ItemUseSurfboard: ; d9b4 (3:59b4)
|
|||
jp LoadWalkingPlayerSpriteGraphics
|
||||
; uses a simulated button press to make the player move forward
|
||||
.makePlayerMoveForward
|
||||
ld a,[wd52a] ; direction the player is going
|
||||
bit 3,a
|
||||
ld a,[wPlayerDirection] ; direction the player is going
|
||||
bit PLAYER_DIR_BIT_UP,a
|
||||
ld b,D_UP
|
||||
jr nz,.storeSimulatedButtonPress
|
||||
bit 2,a
|
||||
bit PLAYER_DIR_BIT_DOWN,a
|
||||
ld b,D_DOWN
|
||||
jr nz,.storeSimulatedButtonPress
|
||||
bit 1,a
|
||||
bit PLAYER_DIR_BIT_LEFT,a
|
||||
ld b,D_LEFT
|
||||
jr nz,.storeSimulatedButtonPress
|
||||
ld b,D_RIGHT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue