-
Notifications
You must be signed in to change notification settings - Fork 1
Tutorial Colors and Palettes
The palette system recolors the whole presentation — world tiles per map, each species' battle art, walkers, UI chrome, HP bars — from one data file. Two pieces turn it on:
-
presentation/version.jsongains the knob:
{"color_mode": "palettes"}-
presentation/palettes.jsonholds the library and the assignments:
{
"palettes": {
"pal_meadow": ["#ffffff", "#b8e0a0", "#4a7850", "#102010"],
"pal_hero": ["#ffffff", "#f0c8a0", "#a05840", "#181010"]
},
"assignments": {
"world": {"default": "pal_meadow", "maps": {"MeadowHut": "pal_hero"}},
"species": {"cindercub": "pal_hero"},
"trainers": "pal_hero",
"ui": "pal_meadow",
"hp_bars": {"green": "pal_meadow", "yellow": "pal_hero", "red": "pal_hero"},
"objects": {}
}
}- A palette is four shades, light → dark. The engine builds a lookup that maps your art's original four-shade ramp onto each palette, so one drawn tileset renders in every map's own colors — connected neighbor maps each keep their palette in the same frame.
-
worldassigns per map (with a default);speciescolors each monster's battle art and dex pic;trainersanduicolor trainer pics and menu chrome;hp_barscolors the three bar states by its own thresholds;objectsrecolors specific walker sheets. - Absent knob = the classic four-shade monochrome look, untouched. The library can sit in your project dormant until the knob turns.
Boot checks every assignment resolves into the library and every palette has exactly four parseable colors — refusals name the entry. --validate sees the same rules.
For the faithful project, the extractor emits the cartridge's own palette tables into presentation/palettes.json on your machine — the same file shape you author by hand, produced from your own extraction. The distributed toolkit contains none of those values; your project's colors are yours.
Monworks: MIT code · CC0 samples · everything pictured is original content. The faithful Pokémon Red build derives from your own local pokered clone and is never distributed. Pokémon is © Nintendo/Creatures/GAME FREAK; this is an unaffiliated fan engineering project.
Play
Create
Tutorials
- Writing Text
- Battle Backdrops
- Colors and Palettes
- Display Filters and Shaders
- Widescreen and Scaling
- Quality-of-Life Knobs
- Overlays (Recipes)
- Abilities & Battle Hooks
- Modern Individuals
- Per-Individual Fields
- Field Effects
- The Modern Ruleset
- Per-Save Rulesets
- Six Stats
- The Clock
- Conditioned Bindings
- Day and Night
- Sprite Variants
- Overworld Spawns
- Language Packs
- Set-Piece Battles & Narration
- Run a Server
- Join a Server
Elsewhere