diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-30 23:32:07 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-30 23:32:07 -0400 |
commit | c133efea5f8438ea40be83dc3b2039494574c768 (patch) | |
tree | d4091f12c90f12c0b67c3b0a28125e0e049d58ca | |
parent | 43f9f529fa6f6938fc52ac0c9b2d7a27d131c9a2 (diff) |
Add more comments to tileset palette animation functions
-rw-r--r-- | engine/tilesets/tileset_anims.asm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engine/tilesets/tileset_anims.asm b/engine/tilesets/tileset_anims.asm index e31124d6..7695c3ab 100644 --- a/engine/tilesets/tileset_anims.asm +++ b/engine/tilesets/tileset_anims.asm @@ -666,7 +666,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 ; A cycle of 4 colors (0 1 2 1), updating every other tick @@ -676,6 +676,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] @@ -717,7 +719,7 @@ FlickeringCaveEntrancePalette: ret nz ; 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 @@ -725,6 +727,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 |