mirror of https://github.com/pret/pokecrystal.git
Add more comments to tileset palette animation functions
This commit is contained in:
parent
ed0a0f7159
commit
e140e88b7b
|
@ -922,7 +922,7 @@ AnimateWaterPalette:
|
|||
ret nz
|
||||
|
||||
; Ready for BGPD input
|
||||
ld a, (1 << rBGPI_AUTO_INCREMENT) palette PAL_BG_WATER
|
||||
ld a, (1 << rBGPI_AUTO_INCREMENT) palette PAL_BG_WATER color 0
|
||||
ldh [rBGPI], a
|
||||
|
||||
ldh a, [rSVBK]
|
||||
|
@ -937,6 +937,8 @@ AnimateWaterPalette:
|
|||
cp %100
|
||||
jr z, .color2
|
||||
|
||||
; Copy one color from hl to rBGPI via rBGPD
|
||||
|
||||
; color1
|
||||
ld hl, wBGPals1 palette PAL_BG_WATER color 1
|
||||
ld a, [hli]
|
||||
|
@ -987,7 +989,7 @@ FlickeringCaveEntrancePalette:
|
|||
ldh [rSVBK], a
|
||||
|
||||
; Ready for BGPD input
|
||||
ld a, (1 << rBGPI_AUTO_INCREMENT) palette PAL_BG_YELLOW
|
||||
ld a, (1 << rBGPI_AUTO_INCREMENT) palette PAL_BG_YELLOW color 0
|
||||
ldh [rBGPI], a
|
||||
|
||||
; A cycle of 2 colors (0 2), updating every other vblank
|
||||
|
@ -995,6 +997,8 @@ FlickeringCaveEntrancePalette:
|
|||
and %10
|
||||
jr nz, .color1
|
||||
|
||||
; Copy one color from hl to rBGPI via rBGPD
|
||||
|
||||
; color0
|
||||
ld hl, wBGPals1 palette PAL_BG_YELLOW color 0
|
||||
jr .okay
|
||||
|
|
Loading…
Reference in New Issue