Skip to content

Gambitnl/TownGeneratorOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medieval Fantasy City Generator (Grid Edition)

This is a procedural town generator inspired by the Medieval Fantasy City Generator.

Overview

This tool generates medieval towns using a 5ft Grid System (D&D compatible) suitable for VTT battlemaps and tabletop RPGs.

🎮 Quick Start

cd web
npm install
npm run dev

Then open http://localhost:3000/ in your browser.

✨ Key Features

  • 5ft Grid System: Maps are generated on a strict grid for precise battle mapping
  • AI-Generated Assets: Custom tiles (roads, houses, grass, water) created with AI
  • Modern Stack: Built with React and TypeScript for flexibility and maintainability
  • Wave Function Collapse: Advanced procedural generation for organic road layouts
  • Zone System: Automatic allocation of residential, commercial, and other zones
  • VTT Export: Export maps in JSON format for Virtual Tabletop platforms

📚 Documentation

✅ Current Status

All systems operational! The app successfully:

  • ✅ Generates towns using Wave Function Collapse
  • ✅ Places water features (rivers & lakes)
  • ✅ Allocates zones and buildings
  • ✅ Renders to HTML5 Canvas with pan/zoom
  • ✅ Exports to PNG and VTT JSON formats

See STATUS.md for detailed information.

🛠️ Development

  1. cd web
  2. npm install
  3. npm run dev

About

The source code of the Medieval Fantasy City Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.2%
  • Shell 4.2%
  • CSS 4.0%
  • Other 0.6%