mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
42
engine/events/fishing_gfx.asm
Normal file
42
engine/events/fishing_gfx.asm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
LoadFishingGFX:
|
||||
ldh a, [rVBK]
|
||||
push af
|
||||
ld a, $1
|
||||
ldh [rVBK], a
|
||||
|
||||
ld de, FishingGFX
|
||||
ld a, [wPlayerGender]
|
||||
bit PLAYERGENDER_FEMALE_F, a
|
||||
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
|
||||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue