diff options
author | SaveState <pgattic@gmail.com> | 2019-06-05 23:20:37 -0400 |
---|---|---|
committer | SaveState <pgattic@gmail.com> | 2019-06-05 23:20:37 -0400 |
commit | 3b40dc1d3c076fa9277055f3b4a4b58b0ff20b6a (patch) | |
tree | 44eb8b092cbe0eea21c5b5cfa0c496449c9fd42a | |
parent | c44fd62c9e44d3935feffd2eda853f0f940a2fc9 (diff) |
Updated Expand the Town Map Tile Set (markdown)
-rw-r--r-- | Expand-the-Town-Map-Tile-Set.md | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Expand-the-Town-Map-Tile-Set.md b/Expand-the-Town-Map-Tile-Set.md index c2fecb7..bc88eda 100644 --- a/Expand-the-Town-Map-Tile-Set.md +++ b/Expand-the-Town-Map-Tile-Set.md @@ -27,6 +27,21 @@ Pokegear_LoadGFX: jr z, .ssaqua ... +TownMapPals: +; Assign palettes based on tile ids + hlcoord 0, 0 + decoord 0, 0, wAttrMap + ld bc, SCREEN_WIDTH * SCREEN_HEIGHT +.loop +; Current tile + ld a, [hli] + push hl +-; The palette map covers tiles $00 to $5f; $60 and above use palette 0 ++; The palette map covers tiles $00 to $7e, $7f is space graphics + cp $7f + jr nc, .pal0 +... + ``` then edit [main.asm](https://github.com/pret/pokecrystal/blob/master/main.asm): ```diff @@ -41,7 +56,7 @@ 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. +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. Keep in mind that the tile in the bottom-right corner of this must be fully white, as it is the graphic for the spacing between words. 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: |