mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
underwater tileset shit, brings number of errors down to 20
it's currently missing the custom palette but if I did I'd need to fuck with the code for it anyway when I add it properly when this stuff works so I dont think that's a big deal
This commit is contained in:
parent
ef27eaf9ec
commit
29fc26f144
9 changed files with 78 additions and 1 deletions
|
|
@ -227,4 +227,27 @@ LoadDesertPalette:
|
|||
jp FarCopyWRAM
|
||||
ret
|
||||
|
||||
INCLUDE "gfx/tilesets/desert.pal"
|
||||
INCLUDE "gfx/tilesets/desert.pal"
|
||||
|
||||
|
||||
LoadSpecialMapObjectPalette:
|
||||
ld a, [wMapTileset]
|
||||
cp TILESET_UNDERWATER
|
||||
jr z, .underwater
|
||||
jr .do_nothing
|
||||
.underwater
|
||||
call LoadUnderwaterObjectPalette
|
||||
scf
|
||||
ret
|
||||
.do_nothing
|
||||
and a
|
||||
ret
|
||||
LoadUnderwaterObjectPalette:
|
||||
ld a, BANK(wOBPals1)
|
||||
ld de, wOBPals1
|
||||
ld hl, UnderwaterObjectPalette
|
||||
ld bc, 8 palettes
|
||||
call FarCopyWRAM
|
||||
ret
|
||||
UnderwaterObjectPalette:
|
||||
INCLUDE "gfx/tilesets/underwater_sprites.pal"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue