yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
atlas_defaults.cc
Go to the documentation of this file.
2
3namespace yaze::zelda3::atlas {
4
5const std::vector<AtlasColor>& AtlasAreaPalette() {
6 static const std::vector<AtlasColor> palette = {
7 {226, 118, 118}, {238, 160, 88}, {228, 204, 106}, {96, 158, 232},
8 {150, 212, 238}, {182, 130, 92}, {84, 184, 140}, {158, 112, 210},
9 {116, 126, 226}, {216, 110, 168}, {144, 206, 96}, {234, 210, 160},
10 {246, 196, 64}, {150, 66, 74}};
11 return palette;
12}
13
14// Names match the census's vanilla owner names; colors are the palette in
15// order (design doc section 6.4).
16const std::vector<VanillaDungeonDefault>& VanillaDungeonDefaults() {
17 static const std::vector<VanillaDungeonDefault> defaults = [] {
18 const auto& palette = AtlasAreaPalette();
19 std::vector<VanillaDungeonDefault> out = {
20 {0x00, "SEW", "Sewers", palette[0]},
21 {0x02, "HC", "Hyrule Castle", palette[1]},
22 {0x04, "EP", "Eastern Palace", palette[2]},
23 {0x06, "DP", "Desert Palace", palette[3]},
24 {0x08, "AT", "Agahnim's Tower", palette[4]},
25 {0x0A, "SP", "Swamp Palace", palette[5]},
26 {0x0C, "PD", "Palace of Darkness", palette[6]},
27 {0x0E, "MM", "Misery Mire", palette[7]},
28 {0x10, "SW", "Skull Woods", palette[8]},
29 {0x12, "IP", "Ice Palace", palette[9]},
30 {0x14, "TH", "Tower of Hera", palette[10]},
31 {0x16, "TT", "Thieves' Town", palette[11]},
32 {0x18, "TR", "Turtle Rock", palette[12]},
33 {0x1A, "GT", "Ganon's Tower", palette[13]},
34 {0xFF, "INT", "Interiors (houses, caves)", kAtlasInteriorColor},
35 };
36 return out;
37 }();
38 return defaults;
39}
40
41} // namespace yaze::zelda3::atlas
const std::vector< VanillaDungeonDefault > & VanillaDungeonDefaults()
const std::vector< AtlasColor > & AtlasAreaPalette()
constexpr AtlasColor kAtlasInteriorColor