diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-30 16:12:20 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-30 16:12:20 -0400 |
commit | 542f02c18186892971cab3da4b49add4b0059ff1 (patch) | |
tree | 5aef443cec417e67cfc2b8970cd599d8e3c5cc3d /engine | |
parent | 6063bd1dfb1f031161766a7d36831671b204e5d7 (diff) |
Extract more RGB data to .pal files
Diffstat (limited to 'engine')
-rw-r--r-- | engine/gfx/cgb_layouts.asm | 20 | ||||
-rw-r--r-- | engine/gfx/color.asm | 20 |
2 files changed, 10 insertions, 30 deletions
diff --git a/engine/gfx/cgb_layouts.asm b/engine/gfx/cgb_layouts.asm index 56b7d372..2608f403 100644 --- a/engine/gfx/cgb_layouts.asm +++ b/engine/gfx/cgb_layouts.asm @@ -444,21 +444,10 @@ _CGB_GSIntro: ret .ShellderLaprasBGPalette: - RGB 19, 31, 19 - RGB 18, 23, 31 - RGB 11, 21, 28 - RGB 04, 16, 24 +INCLUDE "gfx/intro/shellder_lapras_bg.pal" .ShellderLaprasOBPals: - RGB 29, 29, 29 - RGB 20, 19, 20 - RGB 19, 06, 04 - RGB 03, 04, 06 - - RGB 31, 31, 31 - RGB 31, 31, 31 - RGB 31, 00, 00 - RGB 03, 04, 06 +INCLUDE "gfx/intro/shellder_lapras_ob.pal" .JigglypuffPikachuScene: ld de, wBGPals1 @@ -875,7 +864,4 @@ _CGB_MysteryGift: ret .MysteryGiftPalette: - RGB 31, 31, 31 - RGB 09, 31, 31 - RGB 10, 12, 31 - RGB 00, 03, 19 +INCLUDE "gfx/mystery_gift/mystery_gift.pal" diff --git a/engine/gfx/color.asm b/engine/gfx/color.asm index 18ae76a8..ea59575c 100644 --- a/engine/gfx/color.asm +++ b/engine/gfx/color.asm @@ -146,12 +146,12 @@ Intro_LoadMagikarpPalettes: ret z ; CGB only - ld hl, .BGPal + ld hl, .MagikarpBGPal ld de, wBGPals1 ld bc, 1 palettes call CopyBytes - ld hl, .OBPal + ld hl, .MagikarpOBPal ld de, wOBPals1 ld bc, 1 palettes call CopyBytes @@ -161,17 +161,11 @@ Intro_LoadMagikarpPalettes: ldh [hCGBPalUpdate], a ret -.BGPal: - RGB 31, 31, 31 - RGB 18, 23, 31 - RGB 15, 20, 31 - RGB 00, 00, 00 - -.OBPal: - RGB 31, 31, 31 - RGB 31, 31, 12 - RGB 08, 16, 28 - RGB 00, 00, 00 +.MagikarpBGPal: +INCLUDE "gfx/intro/magikarp_bg.pal" + +.MagikarpOBPal: +INCLUDE "gfx/intro/magikarp_ob.pal" Intro_LoadAllPal0: call CheckCGB |