mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
42 lines
582 B
NASM
42 lines
582 B
NASM
LoadFishingGFX:
|
|
ldh a, [rVBK]
|
|
push af
|
|
ld a, $1
|
|
ldh [rVBK], a
|
|
|
|
ld a, [wPlayerCharacter]
|
|
ld e, PLAYERDATA_FISHING_SPRITE
|
|
call GetPlayerField
|
|
ld d, h
|
|
ld e, l
|
|
|
|
ld hl, vTiles0 tile $02
|
|
call .LoadGFX
|
|
ld hl, vTiles0 tile $06
|
|
call .LoadGFX
|
|
ld hl, vTiles0 tile $0a
|
|
call .LoadGFX
|
|
ld hl, vTiles0 tile $fc
|
|
call .LoadGFX
|
|
|
|
pop af
|
|
ldh [rVBK], a
|
|
ret
|
|
|
|
.LoadGFX:
|
|
lb bc, BANK(FishingGFX), 2
|
|
push de
|
|
call Get2bpp
|
|
pop de
|
|
ld hl, 2 tiles
|
|
add hl, de
|
|
ld d, h
|
|
ld e, l
|
|
ret
|
|
|
|
FishingGFX:
|
|
INCBIN "gfx/overworld/chris_fish.2bpp"
|
|
|
|
KrisFishingGFX:
|
|
INCBIN "gfx/overworld/kris_fish.2bpp"
|