Hacky color blending

This commit is contained in:
Lior Halphon 2020-05-04 02:17:03 +03:00
parent 2225fd114c
commit 72a90ba91c

View File

@ -1093,7 +1093,6 @@ GetInputPaletteIndex:
; Slide into change Animation Palette ; Slide into change Animation Palette
ChangeAnimationPalette: ChangeAnimationPalette:
push af
push hl push hl
push bc push bc
push de push de
@ -1149,6 +1148,7 @@ ChangeAnimationPalette:
.isNotWhite .isNotWhite
ld a, [hli] ld a, [hli]
ldh [BgPalettes + 7 * 8 + 6], a ; Fourth color, 7th palette ldh [BgPalettes + 7 * 8 + 6], a ; Fourth color, 7th palette
ldh [BgPalettes + 7 * 8 + 2], a ; Second color, half, 7th palette; rough color mixing
ld a, [hli] ld a, [hli]
ldh [BgPalettes + 7 * 8 + 7], a ; Fourth color, 7th palette ldh [BgPalettes + 7 * 8 + 7], a ; Fourth color, 7th palette
ld a, [hli] ld a, [hli]
@ -1165,7 +1165,6 @@ ChangeAnimationPalette:
pop de pop de
pop bc pop bc
pop hl pop hl
pop af
ret ret
ReplaceColorInAllPalettes: ReplaceColorInAllPalettes: