pokecrystal/engine/events/fishing_gfx.asm

43 lines
610 B
NASM
Raw Normal View History

2018-06-24 14:09:41 +00:00
LoadFishingGFX:
ldh a, [rVBK]
2018-01-12 04:51:43 +00:00
push af
ld a, $1
ldh [rVBK], a
2018-01-12 04:51:43 +00:00
ld de, FishingGFX
ld a, [wPlayerGender]
2018-01-22 19:34:55 +00:00
bit PLAYERGENDER_FEMALE_F, a
2018-01-12 04:51:43 +00:00
jr z, .got_gender
ld de, KrisFishingGFX
.got_gender
ld hl, vTiles0 tile $02
call .LoadGFX
ld hl, vTiles0 tile $06
call .LoadGFX
ld hl, vTiles0 tile $0a
call .LoadGFX
2018-07-15 15:58:01 +00:00
ld hl, vTiles0 tile $fc
2018-01-12 04:51:43 +00:00
call .LoadGFX
pop af
ldh [rVBK], a
2018-01-12 04:51:43 +00:00
ret
2018-06-24 14:09:41 +00:00
.LoadGFX:
2018-01-12 04:51:43 +00: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 14:09:41 +00:00
FishingGFX:
2018-01-12 04:51:43 +00:00
INCBIN "gfx/overworld/chris_fish.2bpp"
2018-06-24 14:09:41 +00:00
KrisFishingGFX:
2018-01-12 04:51:43 +00:00
INCBIN "gfx/overworld/kris_fish.2bpp"