Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
/* Cerulean Cave Maps
*
* From: https://github.com/PokemonAutomation/
*
* Generated from pret/pokefirered at ce6406d8c2ea: each floor's
* data/layouts/<map>/map.bin (collision and elevation per tile) and
* data/maps/<map>/map.json (warps and objects), with tile behaviors from the
* General and CeruleanCave tilesets' metatile_attributes.bin. The '#' tiles
* include the cave's one-way edges (MB_IMPASSABLE_NORTH), which all have
* collision here as well.
*
*/

#include "PokemonFRLG_CeruleanCaveMaps.h"

namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonFRLG{


const std::vector<OverworldMap>& cerulean_cave_maps(){
static const std::vector<OverworldMap> MAPS{
// CeruleanCave_1F: 40x23
OverworldMap(MapText{
"CeruleanCave_1F",
{
"########################################",
"#######...##.#########~~~~~~~~~#..##..##",
"#######......#########~~~~~~~~~#......##",
"#######..##..#~~~~~~~~~~~~~~~~~#......##",
"##.####..##..#~~~~~~~~~~#...#~~##.######",
"##.#.........#~~~~~~~~~~#...#~~~~~~~~~~#",
"#..#....##...#~~~#..........#~~~~~~~~~~#",
"#..#....##...#~~~#..........#~~~~~~~~~~#",
"#..#....##...#~~~#.................#~~~#",
"####....##.###~~~#...######...#....#~~~#",
"##.#....#~~~##~~~#...##.####.......#~~~#",
"##......#~~~##~~~##.###...##.......#~~~#",
"##......#~~~~~~~~#....#...##...#####~~~#",
"##......#~~~~~~~~#..#.##.###...###.....#",
"##..##..#~~~~~~~~#.........#...#.......#",
"##..#...#~~~#....##......###...#.....###",
"##......#...#....####...####...#...#####",
"##......#...#..................#...#####",
"#####.###...##.#...............#...#####",
"#####..........#...............#...#####",
"#####..........#...............#...#####",
"#####..........#################...#####",
"########################################",
},
{
"0000000000000000000000000000000000000000",
"0000000333003000000000111111111033003300",
"0000000333333000000000111111111033333300",
"0000000330033011111111111111111033333300",
"0030000330033011111111110444011003000000",
"0030333333333011111111110444011111111110",
"0330333300333011104444444444011111111110",
"0330333300333011104444444444011111111110",
"0330333300333011104444444444444444401110",
"0000333300300011104440000004440444401110",
"0030333301110011104440030000444444401110",
"0033333301110011100000033300444444401110",
"0033333301111111103333033300444000001110",
"0033333301111111103303003000444000333330",
"0033003301111111103333333330444033333330",
"0033033301110444400333333000444033333000",
"0033333303330444400003330000444033300000",
"0033333303330444444444444444444033300000",
"0000030003330000444444444444444033300000",
"0000033333333330444444444444444033300000",
"0000033333333330444444444444444033300000",
"0000033333333330000000000000000033300000",
"0000000000000000000000000000000000000000",
},
{
{33, 21, "", 7}, // MAP_CERULEAN_CITY
{34, 2, "CeruleanCave_2F", 0},
{1, 7, "CeruleanCave_B1F", 0},
{10, 2, "CeruleanCave_2F", 1},
{5, 15, "CeruleanCave_2F", 2},
{30, 10, "CeruleanCave_2F", 3},
{24, 11, "CeruleanCave_2F", 4},
{2, 4, "CeruleanCave_2F", 5},
},
{
{7, 3, "item_ball"},
{11, 16, "item_ball"},
{25, 5, "item_ball"},
{7, 21, "rock_smash_rock"},
{13, 21, "rock_smash_rock"},
{5, 20, "rock_smash_rock"},
{14, 20, "rock_smash_rock"},
{11, 21, "rock_smash_rock"},
{9, 18, "rock_smash_rock"},
},
}),
// CeruleanCave_2F: 40x23
OverworldMap(MapText{
"CeruleanCave_2F",
{
"########################################",
"########################################",
"########################################",
"####....####..##.....#............######",
"#######.......#..###.#.#########..######",
"####..####.####.##.#.#.........#########",
"####.....#.........###########....######",
"#######.############.........####.######",
"####.#...............#######....#.######",
"####.#################..#..###.##.######",
"####.#....#.............#...#...#.######",
"####.#.##.#.#####.#######.#####.#.######",
"####.#..#.#.....#.......#.....#.#.######",
"####.#..#.#####.#######.#####.#.########",
"####.#..#.#.....#.....#.....#.#.#.######",
"####.####.#.#####.###.#.#.#.#.#.#.######",
"####.#....#.........#.#.#.#.#.#.#.######",
"####.#.####.#########.#.#.#.###.#.######",
"####.#....#.....#.....#.#.#.....#.######",
"####.############.#####.#.#######.######",
"####..............#.....#.........######",
"########################################",
"########################################",
},
{
"0000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000",
"0000333300003300333330333333333333000000",
"0000000333333303300030300000000033000000",
"0000330000300003003030333333333000000000",
"0000333330333333333000000000003333000000",
"0000000300000000000033333333300003000000",
"0000303333333333333330000000333303000000",
"0000300000000000000000330330003003000000",
"0000303333033333333333330333033303000000",
"0000303003030000030000000300000303000000",
"0000303303033333033333330333330303000000",
"0000303303000003000000030000030300000000",
"0000303303033333033333033333030303000000",
"0000300003030000030003030303030303000000",
"0000303333033333333303030303030303000000",
"0000303000030000000003030303000303000000",
"0000303333033333033333030303333303000000",
"0000300000000000030000030300000003000000",
"0000333333333333330333330333333333000000",
"0000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000",
},
{
{33, 4, "CeruleanCave_1F", 1},
{13, 4, "CeruleanCave_1F", 3},
{7, 14, "CeruleanCave_1F", 4},
{26, 9, "CeruleanCave_1F", 5},
{23, 10, "CeruleanCave_1F", 6},
{5, 6, "CeruleanCave_1F", 7},
},
{
{9, 18, "item_ball"},
{29, 16, "item_ball"},
{33, 12, "item_ball"},
{33, 10, "rock_smash_rock"},
{33, 9, "rock_smash_rock"},
{25, 11, "rock_smash_rock"},
{28, 20, "rock_smash_rock"},
{30, 20, "rock_smash_rock"},
{9, 13, "rock_smash_rock"},
{23, 16, "rock_smash_rock"},
{13, 6, "rock_smash_rock"},
{4, 12, "rock_smash_rock"},
{10, 20, "rock_smash_rock"},
},
}),
// CeruleanCave_B1F: 40x23
OverworldMap(MapText{
"CeruleanCave_B1F",
{
"########################################",
"##..............##.....############....#",
"##..............#........#######.......#",
"##..............#..####.....#######....#",
"##......#####.###..####.....#######....#",
"##......#..........########.#######.#..#",
"##..##..##........#########............#",
"##..#...###......##########............#",
"##......#~~~~~##................#...####",
"#########~~~~~##................#...####",
"#~~~############................#...####",
"#~~~##############.########.###.#...####",
"#~~~#.#.#.########........#.###.#...####",
"#~~~#.....########........#.....#...####",
"#~~~#.....########........#.....#...####",
"#~~~###.###~~~~#......#...#.###.#...####",
"#~~~~~~~~~~~~~~#......#...#.###.#...####",
"#~~~~~~~~~~~~~~#......#...#.....#...####",
"#~~~~~~~~~~~~~~#......#...#.....#...####",
"######~~~~~~~~~##.##.##...###.###...####",
"######~~~~~~~~~~~~#.......###.......####",
"######~~~~~~~~~~~~##.....####.......####",
"########################################",
},
{
"0000000000000000000000000000000000000000",
"0033333333333333003333300000000000033330",
"0033333333333333033333333000000033333330",
"0033333333333333033000033333000000033330",
"0033333300000300033000033333000000033330",
"0033333303333333333000000003000000030330",
"0033003300333333330000000003333333333330",
"0033033300033333300000000003333333333330",
"0033333301111100444444444444444403330000",
"0000000001111100444444444444444403330000",
"0111000000000000444444444444444403330000",
"0111000000000000000000000004000403330000",
"0111030303000000003333333304000403330000",
"0111033333000000003333333304444403330000",
"0111033333000000003333333304444403330000",
"0111000300011110444444033304000403330000",
"0111111111111110444444033304000403330000",
"0111111111111110444444033304444403330000",
"0111111111111110404444033304444403330000",
"0000001111111110030000033300000003330000",
"0000001111111111110333333300033333330000",
"0000001111111111110033333000033333330000",
"0000000000000000000000000000000000000000",
},
{
{5, 7, "CeruleanCave_1F", 2},
},
{
{31, 9, "item_ball"},
{32, 2, "item_ball"},
{7, 12, "mewtwo"},
{37, 1, "rock_smash_rock"},
{38, 2, "rock_smash_rock"},
{35, 1, "rock_smash_rock"},
{37, 4, "rock_smash_rock"},
{35, 5, "rock_smash_rock"},
{2, 2, "rock_smash_rock"},
{4, 1, "rock_smash_rock"},
{6, 1, "rock_smash_rock"},
{3, 4, "rock_smash_rock"},
},
}),
};
return MAPS;
}



}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* Cerulean Cave Maps
*
* From: https://github.com/PokemonAutomation/
*
* The three floors of Cerulean Cave, where Mewtwo waits on B1F.
*
*/

#ifndef PokemonAutomation_PokemonFRLG_CeruleanCaveMaps_H
#define PokemonAutomation_PokemonFRLG_CeruleanCaveMaps_H

#include <vector>
#include "PokemonFRLG_OverworldMap.h"

namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonFRLG{


// 1F, 2F and B1F, by their decompilation names ("CeruleanCave_1F", ...).
const std::vector<OverworldMap>& cerulean_cave_maps();

// Where the player stands after entering from Cerulean City (1F).
constexpr MapPoint CERULEAN_CAVE_ENTRANCE{33, 21};

// Mewtwo's tile on B1F. Its battle starts by talking to it from the south.
constexpr MapPoint CERULEAN_CAVE_MEWTWO{7, 12};



}
}
}
#endif
Loading
Loading