Render map as image
render_map_imageRenders a map as a PNG image to visually verify tile layers, event markers, regions, grid, and passability after map edits.
Instructions
Render a map to a PNG image so you can SEE what it looks like: all tile layers with correct autotile shapes, shadows and tiles that draw above characters, optionally the events' character sprites, coloured event markers with their ids, region ids, a tile grid and a passability overlay (red = blocked in at least one direction). This is the visual counterpart of render_map (text) - use it after paint_tiles / create_event / connect_maps to check your work. Marker colours: blue = event with a Transfer Player command (door/exit), orange = shows text, magenta = autorun/parallel, green = anything else. Needs the tileset images in img/tilesets (sheets without an image are drawn as flat colours and listed). Large maps are shrunk to fit ~1600px; pass x/y/width/height to zoom into a region and raise tileSize for detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Region left edge in tiles | |
| y | No | Region top edge in tiles | |
| mapId | Yes | ||
| width | No | Region width in tiles (default: to the map's right edge) | |
| height | No | Region height in tiles (default: to the map's bottom edge) | |
| showGrid | No | Overlay a tile grid | |
| tileSize | No | Pixels per map tile (48 = full resolution). Reduced automatically so the image stays under ~1600px | |
| showEvents | No | Draw event character sprites, coloured id markers, both, or neither | both |
| showRegions | No | Overlay region ids (layer 5) | |
| showPassability | No | Tint blocked cells translucent red (blocked in at least one direction by the tileset flags) |