mirror of
https://github.com/pret/pokeyellow.git
synced 2026-04-21 00:07:14 -05:00
29 lines
432 B
NASM
29 lines
432 B
NASM
MtMoonB2FScript_ApplyPikachuMovementData:
|
|
ld a, [wd471]
|
|
bit 7, a
|
|
ret z
|
|
ld a, [wWalkBikeSurfState]
|
|
and a
|
|
ret nz
|
|
|
|
push hl
|
|
push bc
|
|
callfar GetPikachuFacingDirectionAndReturnToE
|
|
pop bc
|
|
pop hl
|
|
ld a, b
|
|
cp e
|
|
ret nz
|
|
|
|
push hl
|
|
ld a, [wUpdateSpritesEnabled]
|
|
push af
|
|
ld a, $ff
|
|
ld [wUpdateSpritesEnabled], a
|
|
callfar LoadPikachuShadowIntoVRAM
|
|
pop af
|
|
ld [wUpdateSpritesEnabled], a
|
|
pop hl
|
|
call ApplyPikachuMovementData
|
|
ret
|