2018-06-24 07:09:41 -07:00
|
|
|
LoadFishingGFX:
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [rVBK]
|
2018-01-11 20:51:43 -08:00
|
|
|
push af
|
|
|
|
ld a, $1
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rVBK], a
|
2018-01-11 20:51:43 -08:00
|
|
|
|
2024-03-09 07:40:21 -08:00
|
|
|
ld a, [wPlayerCharacter]
|
2024-03-08 09:56:26 -08:00
|
|
|
ld e, PLAYERDATA_FISHING_SPRITE
|
|
|
|
call GetPlayerField
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
2018-01-11 20:51:43 -08:00
|
|
|
|
|
|
|
ld hl, vTiles0 tile $02
|
|
|
|
call .LoadGFX
|
|
|
|
ld hl, vTiles0 tile $06
|
|
|
|
call .LoadGFX
|
|
|
|
ld hl, vTiles0 tile $0a
|
|
|
|
call .LoadGFX
|
2018-07-15 08:58:01 -07:00
|
|
|
ld hl, vTiles0 tile $fc
|
2018-01-11 20:51:43 -08:00
|
|
|
call .LoadGFX
|
|
|
|
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rVBK], a
|
2018-01-11 20:51:43 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.LoadGFX:
|
2018-01-11 20:51:43 -08:00
|
|
|
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
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
FishingGFX:
|
2018-01-11 20:51:43 -08:00
|
|
|
INCBIN "gfx/overworld/chris_fish.2bpp"
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
KrisFishingGFX:
|
2018-01-11 20:51:43 -08:00
|
|
|
INCBIN "gfx/overworld/kris_fish.2bpp"
|