summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-10-27 22:18:35 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-10-27 22:18:35 -0400
commit5610d25b1125435f68d2a5a3bf7cbea32dbf5b78 (patch)
tree45aab649d321de528405d869237d8ec6596a54cb
parent9d7e6565e521cfe7214185046d88306a409e2c85 (diff)
1300
-rw-r--r--Add-a-new-map-and-landmark.md8
-rw-r--r--screenshots/outdoor-sprites-improved-vram.pngbin13239 -> 13292 bytes
-rw-r--r--screenshots/outdoor-sprites-vram.pngbin15029 -> 15080 bytes
3 files changed, 8 insertions, 0 deletions
diff --git a/Add-a-new-map-and-landmark.md b/Add-a-new-map-and-landmark.md
index 966da9f..d6bb8de 100644
--- a/Add-a-new-map-and-landmark.md
+++ b/Add-a-new-map-and-landmark.md
@@ -53,6 +53,14 @@ Now create another new map, 9 blocks wide and 6 blocks high, using the `radio_to
Save that as **maps/GlobalTerminal1F.blk**.
+When you're designing maps, keep their size below this limit:
+
+(*width* + 6) × (*height* + 6) ≤ 1300
+
+The current map's block data gets loaded into WRAM at the address `wOverworldMapBlocks`, which is declared to have 1300 bytes in [wram.asm](../blob/master/wram.asm). This buffer gets padded on all sides with an extra 3 blocks to load the edges of any connected maps.
+
+It so happens that a 30x30 map will neatly fit into this limit, since (30+6)×(30+6)=1296. However, keep in mind that the official maps are usually designed with the width as a multiple of 10 and the height as a multiple of 9. For example, small towns are often 10x9; large cities are 20x18; routes may be 20x9, or 10x18, or 10x45, or so on; National Park is 20x27; et cetera.
+
## 3. Define a map constant
diff --git a/screenshots/outdoor-sprites-improved-vram.png b/screenshots/outdoor-sprites-improved-vram.png
index 8a9d29e..cdaffcb 100644
--- a/screenshots/outdoor-sprites-improved-vram.png
+++ b/screenshots/outdoor-sprites-improved-vram.png
Binary files differ
diff --git a/screenshots/outdoor-sprites-vram.png b/screenshots/outdoor-sprites-vram.png
index edd3eae..4e719d5 100644
--- a/screenshots/outdoor-sprites-vram.png
+++ b/screenshots/outdoor-sprites-vram.png
Binary files differ