Skip to content

Commit

Permalink
Separate more palettes into gfx/**/*.pal files
Browse files Browse the repository at this point in the history
  • Loading branch information
roukaour committed Jan 12, 2018
1 parent 960783c commit 31caeeb
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 100 deletions.
54 changes: 8 additions & 46 deletions engine/cgb_layouts.asm
Original file line number Diff line number Diff line change
Expand Up @@ -258,30 +258,11 @@ _CGB_StatsScreenHPPals: ; 8edb
; 8f52

StatsScreenPagePals: ; 8f52
; pink
RGB 31, 31, 31
RGB 31, 19, 31
RGB 31, 15, 31
RGB 00, 00, 00
; green
RGB 31, 31, 31
RGB 21, 31, 14
RGB 17, 31, 00
RGB 00, 00, 00
; blue
RGB 31, 31, 31
RGB 17, 31, 31
RGB 17, 31, 31
RGB 00, 00, 00
INCLUDE "gfx/stats/pages.pal"
; 8f6a

StatsScreenPals: ; 8f6a
; pink
RGB 31, 19, 31
; green
RGB 21, 31, 14
; blue
RGB 17, 31, 31
INCLUDE "gfx/stats/stats.pal"
; 8f70

_CGB_Pokedex: ; 8f70
Expand Down Expand Up @@ -319,16 +300,11 @@ _CGB_Pokedex: ; 8f70
; 8fba

.PokedexQuestionMarkPalette: ; 8fba
RGB 11, 23, 00
RGB 07, 17, 00
RGB 06, 16, 03
RGB 05, 12, 01
INCLUDE "gfx/pokedex/question_mark.pal"
; 8fc2

.PokedexCursorPalette: ; 8fc2
RGB 00, 00, 00
RGB 11, 23, 00
RGB 07, 17, 00
RGB 00, 00, 00
INCLUDE "gfx/pokedex/cursor.pal"
; 8fca

_CGB_BillsPC: ; 8fca
Expand Down Expand Up @@ -385,10 +361,7 @@ _CGB_BillsPC: ; 8fca
; 9036

.BillsPCOrangePalette: ; 9036
RGB 31, 15, 00
RGB 23, 12, 00
RGB 15, 07, 00
RGB 00, 00, 00
INCLUDE "gfx/pc/orange.pal"
; 903e

_CGB_PokedexUnownMode: ; 903e
Expand Down Expand Up @@ -970,10 +943,7 @@ _CGB_GamefreakLogo: ; 94fa
; 9521

.Palette: ; 9521
RGB 31, 31, 31
RGB 13, 11, 00
RGB 23, 12, 28
RGB 00, 00, 00
INCLUDE "gfx/splash/logo.pal"
; 9529

_CGB_PlayerOrMonFrontpicPals: ; 9529
Expand Down Expand Up @@ -1059,13 +1029,5 @@ _CGB_MysteryGift: ; 9591
; 95e0

.Palettes: ; 95e0
RGB 31, 31, 31
RGB 16, 31, 14
RGB 05, 14, 21
RGB 05, 13, 10

RGB 31, 31, 31
RGB 11, 21, 25
RGB 05, 14, 21
RGB 00, 03, 19
INCLUDE "gfx/mystery_gift/mystery_gift.pal"
; 95f0
2 changes: 1 addition & 1 deletion engine/crystal_colors.asm
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ INCLUDE "gfx/font/bg_text.pal"
; 49420

Function49420:: ; 49420 (12:5420)
ld hl, MansionPalette4
ld hl, MansionPalette1 + 8 palettes
ld de, wBGPals1 palette PAL_BG_ROOF
ld bc, 1 palettes
ld a, BANK(wBGPals1)
Expand Down
57 changes: 4 additions & 53 deletions engine/tileset_palettes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -119,53 +119,7 @@ INCLUDE "gfx/tilesets/radio_tower.pal"
; 4967d

MansionPalette1: ; 4967d
RGB 30, 28, 26
RGB 19, 19, 19
RGB 13, 13, 13
RGB 07, 07, 07

RGB 30, 28, 26
RGB 31, 19, 24
RGB 30, 10, 06
RGB 07, 07, 07

RGB 18, 24, 09
RGB 15, 20, 01
RGB 09, 13, 00
RGB 07, 07, 07

RGB 30, 28, 26
RGB 15, 16, 31
RGB 09, 09, 31
RGB 07, 07, 07

RGB 30, 28, 26
RGB 31, 31, 07
RGB 31, 16, 01
RGB 07, 07, 07

RGB 26, 24, 17
RGB 21, 17, 07
RGB 16, 13, 03
RGB 07, 07, 07

MansionPalette3: ; 496ad
RGB 30, 28, 26
RGB 17, 19, 31
RGB 14, 16, 31
RGB 07, 07, 07

RGB 31, 31, 16
RGB 31, 31, 16
RGB 14, 09, 00
RGB 00, 00, 00
; 496bd

MansionPalette4: ; 496bd
RGB 05, 05, 16
RGB 08, 19, 28
RGB 00, 00, 00
RGB 31, 31, 31
INCLUDE "gfx/tilesets/celadon_mansion_1.pal"
; 496c5

LoadMansionPalette: ; 496c5
Expand All @@ -181,20 +135,17 @@ LoadMansionPalette: ; 496c5
call FarCopyWRAM
ld a, BANK(wBGPals1)
ld de, wBGPals1 palette PAL_BG_WATER
ld hl, MansionPalette3
ld hl, MansionPalette1 + 6 palettes
ld bc, 1 palettes
call FarCopyWRAM
ld a, BANK(wBGPals1)
ld de, wBGPals1 palette PAL_BG_ROOF
ld hl, MansionPalette4
ld hl, MansionPalette1 + 8 palettes
ld bc, 1 palettes
call FarCopyWRAM
ret
; 496fe

MansionPalette2: ; 496fe
RGB 25, 24, 23
RGB 20, 19, 19
RGB 14, 16, 31
RGB 07, 07, 07
INCLUDE "gfx/tilesets/celadon_mansion_2.pal"
; 49706
4 changes: 4 additions & 0 deletions gfx/pc/orange.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RGB 31, 15, 00
RGB 23, 12, 00
RGB 15, 07, 00
RGB 00, 00, 00
4 changes: 4 additions & 0 deletions gfx/pokedex/cursor.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RGB 00, 00, 00
RGB 11, 23, 00
RGB 07, 17, 00
RGB 00, 00, 00
4 changes: 4 additions & 0 deletions gfx/pokedex/question_mark.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RGB 11, 23, 00
RGB 07, 17, 00
RGB 06, 16, 03
RGB 05, 12, 01
4 changes: 4 additions & 0 deletions gfx/splash/logo.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RGB 31, 31, 31
RGB 13, 11, 00
RGB 23, 12, 28
RGB 00, 00, 00
15 changes: 15 additions & 0 deletions gfx/stats/pages.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; pink
RGB 31, 31, 31
RGB 31, 19, 31
RGB 31, 15, 31
RGB 00, 00, 00
; green
RGB 31, 31, 31
RGB 21, 31, 14
RGB 17, 31, 00
RGB 00, 00, 00
; blue
RGB 31, 31, 31
RGB 17, 31, 31
RGB 17, 31, 31
RGB 00, 00, 00
6 changes: 6 additions & 0 deletions gfx/stats/stats.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
; pink
RGB 31, 19, 31
; green
RGB 21, 31, 14
; blue
RGB 17, 31, 31
44 changes: 44 additions & 0 deletions gfx/tilesets/celadon_mansion_1.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
RGB 30, 28, 26
RGB 19, 19, 19
RGB 13, 13, 13
RGB 07, 07, 07

RGB 30, 28, 26
RGB 31, 19, 24
RGB 30, 10, 06
RGB 07, 07, 07

RGB 18, 24, 09
RGB 15, 20, 01
RGB 09, 13, 00
RGB 07, 07, 07

RGB 30, 28, 26
RGB 15, 16, 31
RGB 09, 09, 31
RGB 07, 07, 07

RGB 30, 28, 26
RGB 31, 31, 07
RGB 31, 16, 01
RGB 07, 07, 07

RGB 26, 24, 17
RGB 21, 17, 07
RGB 16, 13, 03
RGB 07, 07, 07

RGB 30, 28, 26
RGB 17, 19, 31
RGB 14, 16, 31
RGB 07, 07, 07

RGB 31, 31, 16
RGB 31, 31, 16
RGB 14, 09, 00
RGB 00, 00, 00

RGB 05, 05, 16
RGB 08, 19, 28
RGB 00, 00, 00
RGB 31, 31, 31
4 changes: 4 additions & 0 deletions gfx/tilesets/celadon_mansion_2.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RGB 25, 24, 23
RGB 20, 19, 19
RGB 14, 16, 31
RGB 07, 07, 07

0 comments on commit 31caeeb

Please sign in to comment.