一个单独的HTML文件,程序化生成一个活生生的中世纪王国,包含经济、王朝、事件和自动叙事的编年史,所有内容由共享种子确定性生成。

Stars

48

7 天增长

暂无数据

Fork 数

14

开放 Issue

1

开源协议

MIT

最近更新

2026-07-08

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它将深度程序生成、交互式模拟和基于种子的确定性共享融合到一个无需构建步骤或后端的自包含HTML文件中。

适合谁使用

  • 探索程序生成的游戏开发者
  • 历史与模拟爱好者
  • 对单文件应用感兴趣的网页开发者
  • 喜欢环境观察的休闲用户

典型使用场景

  • 用于观察中世纪经济和社会动态的教育工具
  • 游戏世界设计或叙事生成的灵感来源
  • 通过自动导演模式进行放松的旁观体验
  • 通过种子链接分享独特的世界

项目优势

  • 确定性种子确保从URL哈希生成相同的世界
  • 在约7,000行代码中集成了丰富的相互关联系统(经济、王朝、天气、事件)
  • 流畅运行,低于100次绘制调用,60帧每秒
  • 支持触摸和键盘的完全交互控制

使用前须知

  • 单文件设计可能不利于模块化修改
  • 除共享种子外,没有保存/加载功能
  • 需要支持WebGL的浏览器以及用于three.js CDN的网络连接

README 快速开始

The Annals — a living kingdom in a single file

A procedurally generated medieval realm that lives on its own — harvests and plagues, dynasties and civil wars, bandits, omens, and a dragon asleep on its hoard — while its chronicle writes itself in the margin. Watch it like a nature documentary, or reach in and turn the dials of fate.

Play it: annals-kingdom.netlify.app

Everything is one HTML file. No build step, no backend, no saves — the entire kingdom regenerates deterministically from a seed in the URL hash, so a link is a world: share #s=your-seed-here and the recipient forges the exact same realm, down to the last shepherd.

What lives in it

  • A forged world — terrain, rivers that carve valleys and end in meres, biomes, roads found by pathfinding, towns planned street by street, heraldry drawn house by house
  • A working economy — seven goods, prices from scarcity, caravans and cargo cogs you can follow down the roads, tolls, famines, and the occasional beached whale
  • A dynasty — named notables who marry, scheme, and die; successions, regencies, usurpers, family trees you can browse; great houses with temperaments, grudges, and civil wars fought by armies that camp outside the walls
  • The fates — weather and floods, fires with real flames, plague waves, bandit kings, comets and eclipses, wolf-winters, white harts, and one dragon
  • Towns that change — houses rise with prosperity and rot with decline, forests are cleared into farmland, new villages are chartered, windmills and abbeys and wayside shrines appear over the decades
  • An auto-director and Watch mode — leave it alone and a camera drifts to whatever story is breaking, with a caption card; press C and the realm narrates itself
  • The Chronicle — every event inked with its date, filterable, exportable, with a Charts view of population, treasury, and prosperity across the centuries
  • Acts of God — a board of interventions: plague, fire, earthquake, dragon-waking, assassination, contested successions, or the charter of a new village exactly where you click

Controls

DesktopTouch
drag to orbitone finger orbits
wheel / trackpad scroll or pinch to zoompinch zooms
right-drag to pantwo fingers pan
double-click to traveldouble-tap travels
click to inspecttap inspect

项目描述

A living medieval kingdom in a single HTML file - procedural worldgen, economy, dynasties, wars, dragons, and a chronicle that writes itself

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

ddosi
精选
ddosi GitHub avatar

PacketLens

PacketLens is a pure front-end, offline pcap analysis tool that runs entirely in the browser, supporting deep protocol decoding, HTTPS decryption, and million-packet instant loading without any backend.

HTML
16
ViffyGwaanl
精选
ViffyGwaanl GitHub avatar

kimi-k3-learn

An interactive learning system that turns the 47-page Kimi K3 technical report into a single offline HTML file with running algorithms, 3D visualizations, spaced repetition quizzes, and a smart highlighting QA tool.

AI 与机器学习
15
iamtechartist
精选
iamtechartist GitHub avatar

human-cell-visualizer

An interactive 3D visualization of three human cell types using Three.js, WebGL particles, and custom GLSL shaders, allowing users to rotate, zoom, morph, and explore annotated structures.

设计与创意
13