一句话,生成一个鲜活的 AI 世界。
English | 中文
AI Agents · LLM · Procedural Generation · Simulation · Emergent Narrative
![]() |
![]() |
![]() |
![]() |
## 详细技术介绍
https://zhuanlan.zhihu.com/p/2032410449854068566
## 项目结构
```
WorldX/
├── orchestrator/ # LLM 驱动的世界设计与配置生成
│ ├── src/
│ │ ├── index.mjs # 管线入口:一句话 → 世界
│ │ ├── world-designer.mjs # LLM 世界设计
│ │ └── config-generator.mjs
│ └── prompts/
│ └── design-world.md # 世界设计 prompt 模板
├── generators/ # 美术生成管线
│ ├── map/ # 地图生成(多步骤 + 审查循环)
│ └── character/ # 角色立绘生成(含抠图)
├── server/ # 模拟引擎(Express + SQLite + LLM)
│ └── src/
│ ├── core/ # WorldManager, CharacterManager
│ ├── simulation/ # SimulationEngine, DecisionMaker, DialogueGenerator
│ ├── llm/ # LLMClient, PromptBuilder
│ └── store/ # SQLite 持久化(每时间线独立)
├── client/ # 游戏客户端(Phaser 3 + React 19)
│ └── src/
│ ├── scenes/ # BootScene, WorldScene
│ ├── ui/ # React 覆盖层面板
│ └── systems/ # 相机、寻路、回放
├── shared/ # 共享工具(结构化输出解析)
├── library/worlds/ # 内置示例世界
├── output/worlds/ # 你生成的世界
└── .env.example # 配置模板
```
## 开发
```bash
npm run dev # 同时启动客户端和服务器(开发模式)
npm run create # 通过命令行直接生成新世界
```
- 客户端:`http://localhost:3200`
- 服务器:`http://localhost:3100`
## 交流群
## 感谢
- [LinuxDO](https://linux.do/)
## License
MIT