AI Usage Explanation
This module was created with help from an AI agent (Claude Code), which assisted with the code and the boilerplate. The design, testing and review were done by the author.
Draw a simple top-down map inside Foundry and turn it into a Scene with walls in one click. System agnostic, GM only, Foundry v13.

Features
- Areas of any shape: rectangles, circles and ovals, trapezoids, triangles, hexagons, octagons, and cave areas painted with a brush. Straight or irregular (cavern style) walls.
- One theme per area: mix a house, a cave, a tower and a street in the same map. Themes: Dungeon, Cave, House, Tavern, Wasteland, Oriental, Infernal.
- Joined spaces: areas that overlap become one space, so overlapping a house and a cave makes the passage. Areas that touch keep one wall that can take a door.
- Exact colors: every color of every theme can be set with a picker (color square, hex or RGB). Floor patterns can be swapped freely.
- Detailed props with recolorable parts: about 40 props including stairs, ladders and trapdoors. Each part of a prop has its own color.
- Custom props: draw your own from shapes with named color parts, or use an image. Custom props, theme palettes and theme copies are saved in the world.
- Doors, windows, free wall lines, open areas (floor without walls) and auto furnish.
- Live preview, then Create scene: the map is saved as a PNG and the Scene is created with walls, doors and windows set up.

How to use
- Open the Scenes tab and click Map Creator.
- Pick a theme and a tool in the left toolbar, then draw. The bar above the map shows the options of the current tool.
- Use the right panel: Props (pick props and recolor their parts), Colors (palette of the theme) and Map (name, size, seed).
- Click Create scene. The PNG goes to worlds/<world>/map-creator/ and the Scene to a "Map Creator" folder.


Limits
Overlapping areas always merge. Doors and windows only go on straight walls. Irregular walls next to another area can leave small gaps. Stairs are only drawn, not linked to other scenes. Image props cannot be recolored. Maps are up to 80x80 cells.
Source code and issues: GitHub. MIT license.

