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,12 +1093,11 @@ 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
ld hl, KeyCombinationPalettes - 1 ; Input palettes are 1-based, 0 means nothing down ld hl, KeyCombinationPalettes - 1 ; Input palettes are 1-based, 0 means nothing down
ld c ,a ld c, a
ld b, 0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -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: