diff options
-rw-r--r-- | Expand-the-Town-Map-Tile-Set.md | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Expand-the-Town-Map-Tile-Set.md b/Expand-the-Town-Map-Tile-Set.md new file mode 100644 index 0000000..7c35984 --- /dev/null +++ b/Expand-the-Town-Map-Tile-Set.md @@ -0,0 +1,73 @@ +Hey guys! This is a tutorial on how to use 34 more tiles on the Town Map! It's actually pretty simple. I recommend reading the [town map editing tutorial](https://github.com/pret/pokecrystal/wiki/Edit-the-Town-Map) first to get to know how the town map works. Please note that GBCTME doesn't support this improvement, so if you're planning on using that for editinig the town map, sorry, you'll have to manually edit the [gfx/pokegear/johto.bin](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/johto.bin) file in a hex editor. + +First, edit [engine/pokegear/pokegear.asm](https://github.com/pret/pokecrystal/blob/master/engine/pokegear/pokegear.asm): +```diff +... + +Pokegear_LoadGFX: + call ClearVBank1 + ld hl, TownMapGFX + ld de, vTiles2 + ld a, BANK(TownMapGFX) + call FarDecompress +- ld hl, PokegearGFX +- ld de, vTiles2 tile $30 +- ld a, BANK(PokegearGFX) +- call FarDecompress + ld hl, PokegearSpritesGFX2 + ld de, vTiles0 + ld a, BANK(PokegearSpritesGFX) + call Decompress + ld a, [wMapGroup] + ld b, a + ld a, [wMapNumber] + ld c, a + call GetWorldMapLocation + cp FAST_SHIP + jr z, .ssaqua +... + +``` +then edit [main.asm](https://github.com/pret/pokecrystal/blob/master/main.asm): +```diff +... + +PokegearGFX: +-INCBIN "gfx/pokegear/pokegear.2bpp.lz" +- +INCLUDE "engine/pokemon/european_mail.asm" +... + +``` +This is because we want to load the Town Map graphics and the PokeGear graphics in one file at the same time to make things simpler. (Thanks to i0Brendan0 for that idea.) + +Edit [gfx/pokegear/town_map.png](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/town_map.png) to include the [pokegear.png](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/pokegear.png) graphics below it, as well as two more rows (16 pixels) of your own custom graphics below that. Then delete [gfx/pokegear/pokegear.png](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/pokegear.png). Also delete the associated .2bpp, .2bpp.lz and .2bpp.lz.(some number) files if they exist. + +After you've done this, edit the [gfx/pokegear/town_map_palette_map.asm](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/town_map_palette_map.asm) file: + +```diff +... + +; gfx/pokegear/town_map.png + townmappals EARTH, EARTH, EARTH, MOUNTAIN, MOUNTAIN, MOUNTAIN, BORDER, BORDER + townmappals EARTH, EARTH, CITY, EARTH, POI, POI_MTN, POI, POI_MTN + townmappals EARTH, EARTH, EARTH, MOUNTAIN, MOUNTAIN, MOUNTAIN, BORDER, BORDER + townmappals EARTH, EARTH, BORDER, EARTH, EARTH, BORDER, BORDER, BORDER + townmappals EARTH, EARTH, EARTH, MOUNTAIN, MOUNTAIN, MOUNTAIN, BORDER, BORDER + townmappals BORDER, BORDER, BORDER, BORDER, BORDER, BORDER, BORDER, BORDER +-; gfx/pokegear/pokegear.png + townmappals BORDER, BORDER, BORDER, BORDER, POI, POI, POI, BORDER + townmappals BORDER, BORDER, BORDER, BORDER, BORDER, BORDER, BORDER, BORDER + townmappals CITY, CITY, CITY, CITY, CITY, CITY, CITY, CITY + townmappals CITY, CITY, CITY, CITY, CITY, CITY, CITY, BORDER + townmappals CITY, CITY, CITY, CITY, CITY, CITY, CITY, CITY + townmappals BORDER, BORDER, BORDER, BORDER, BORDER, BORDER, BORDER, BORDER ++ townmappals EARTH, EARTH, EARTH, MOUNTAIN, MOUNTAIN, MOUNTAIN, BORDER, BORDER ++ townmappals EARTH, EARTH, CITY, EARTH, POI, POI_MTN, POI, POI_MTN ++ townmappals EARTH, EARTH, EARTH, MOUNTAIN, MOUNTAIN, MOUNTAIN, BORDER, BORDER ++ townmappals EARTH, EARTH, BORDER, EARTH, EARTH, BORDER, BORDER, BORDER +``` +Those four added lines may vary based on how you want to use the tiles. + +Then, edit [gfx/pokegear/johto.bin](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/johto.bin) and [gfx/pokegear/kanto.bin](https://github.com/pret/pokecrystal/blob/master/gfx/pokegear/kanto.bin) to use your new tiles where you want them. Done! + |