From 3cd46213621e07632c41285bba2a4de34a1dceac Mon Sep 17 00:00:00 2001 From: Ash Ketchum Date: Wed, 15 Jul 2026 12:05:18 +0200 Subject: tools: render_overworld.py - build seamless Kanto map from source Ground-truth overworld generator, no emulator. Parses map_const dimensions, the per-map headers (tileset + connections with their alignment OFFSET), the .blk block data, .bst blocksets (4x4 tile indices) and .2bpp tilesets, renders every map full-size, and places them by the connection-offset math (BFS from Pallet): north:(ax+o,ay-Bh) south:(ax+o,ay+Ah) west:(ax-Bw,ay+o) east:(ax+Aw,ay+o) Produces a coherent 170x180-block (5440x5760px) Kanto overworld from 36 connected maps -- confirming connections join maps along shared edges with an offset, not as independent centered screens. --- tools/render_overworld.py | 132 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 tools/render_overworld.py (limited to 'tools') diff --git a/tools/render_overworld.py b/tools/render_overworld.py new file mode 100644 index 00000000..cf4de255 --- /dev/null +++ b/tools/render_overworld.py @@ -0,0 +1,132 @@ +#!/usr/bin/env python3 +"""render_overworld.py — build the seamless Kanto overworld straight from the +PKY source data (no emulator). Ground truth for how maps connect. + + maps/