summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-26 21:01:52 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-26 21:01:52 -0500
commitcb8a086d15cdbfa57bb4c801a3bcd605563b2b6a (patch)
tree56711ab6dc9cabc2d4191bb987bb1e4cecc96952
parent279a8212f0607ab1ea5541e868f64a3c567c1e4f (diff)
Separate step for the new bank
-rw-r--r--Allow-map-tiles-to-appear-above-sprites.md33
1 files changed, 18 insertions, 15 deletions
diff --git a/Allow-map-tiles-to-appear-above-sprites.md b/Allow-map-tiles-to-appear-above-sprites.md
index df58053..3f7d120 100644
--- a/Allow-map-tiles-to-appear-above-sprites.md
+++ b/Allow-map-tiles-to-appear-above-sprites.md
@@ -74,6 +74,23 @@ endr
ENDM
```
+
+## 3. Fix the skipped space in palette_map.asm files
+
+The [gfx/tilesets/\*\_palette\_map.asm](../blob/master/gfx/tilesets/) define tile palettes in order: first for tiles $00 to $5F, then for tiles $80 to $DF. Tiles $60 to $7F are skipped because those IDs are used for font graphics. But the skipping is done with a count of bytes, not of colors, so we need to double the counts.
+
+Edit each \_palette\_map.asm file:
+
+```diff
+-rept 16
++rept 32
+ db $ff
+endr
+```
+
+
+## 4. Fix the potential bank overflow
+
Now the tileset palette data will take up twice as much space—one byte per tile instead of half a byte—so it won't fit in its ROM bank. Edit [main.asm](../blob/master/main.asm):
```diff
@@ -98,21 +115,7 @@ INCLUDE "engine/routines/phonering_copytilemapatonce.asm"
Since we don't specify a bank for "Tileset Palettes" in [pokecrystal.link](../blob/master/pokecrystal.link), rgblink will place it in any bank that has enough room.
-## 3. Fix the skipped space in palette_map.asm files
-
-The [gfx/tilesets/\*\_palette\_map.asm](../blob/master/gfx/tilesets/) define tile palettes in order: first for tiles $00 to $5F, then for tiles $80 to $DF. Tiles $60 to $7F are skipped because those IDs are used for font graphics. But the skipping is done with a count of bytes, not of colors, so we need to double the counts.
-
-Edit each \_palette\_map.asm file:
-
-```diff
--rept 16
-+rept 32
- db $ff
-endr
-```
-
-
-## 3. Correctly read the extended palette data
+## 5. Correctly read the extended palette data
Edit [engine/map_palettes.asm](../blob/master/engine/map_palettes.asm):