Skip to content

About

Seed-driven medieval castle towns, procedural architecture kits, and a shared mesh engine.

Resources

Stars

24 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

OpenCastle

Generate a medieval castle and the town around it. Castle Forge grows a castle precinct, walls, streets, plots, markets and farmland from a seed, then builds the settlement in 3D using procedural kits for towers, gates, houses, churches, mills, bridges and other structures.

Component Source
Castle, town and countryside generator, kits and viewers Castle Forge
Genome operators, mesh builder, critic and archive Shared engine

A procedural walled town and its castle beside a river in bridge-town seed 313

Kit catalogue and keep interior

Fifteen procedural architecture kits in a turntable grid

A cutaway of the castle keep revealing rooms and furnishings

Run locally

Use Node.js 22 and npm. From the workspace root:

npm ci --prefix castle-forge
npm run serve --prefix castle-forge

Preview bridge-town seed 313, or open the kit viewer or the castle and town viewer. The procedural viewers generate terrain, maps and buildings from a seed. OpenCastle includes 58 procedural kit types.

npm test --prefix castle-forge

Documentation for LLMs

Start with llms.txt for the project map and LLM integration guide for executable examples, coordinate conventions, and data boundaries.

License

OpenCastle’s original source is available under the MIT License. Bundled third-party code and assets retain their own terms. Third-party notices

About

Seed-driven medieval castle towns, procedural architecture kits, and a shared mesh engine.

Resources

Stars

24 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages