# World Forge: A 3D Mystery Generated from One Sentence

> Type one sentence and get a playable 3D mystery in one offline HTML file: an LLM writes the world, two characters and a hidden truth, and Rodin and Meshy on SandBase make the seven 3D models. A 24.5 s intro raises the island out of the clouds and materialises every model; then you inspect clues, question a truthful local and a liar, and make your call when the arrival lands.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/games/world-forge

## What you get

Bring one sentence describing a world, or edits to an example world: setting and colours, characters and lines, clues, questions, the answer and the endings. The Skill returns a downloadable Skill (the generation pipeline, the three.js game, a customize guide, headless verification) and three playable example worlds.

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/world-forge (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/world-forge make a 3D mystery from this sentence: <your world in one sentence>
```

## How it works

1. **Generate a world** node scripts/new-project.mjs --out <dir> copies the project, with Node 22.4 or later. npm run forge -- "<sentence>" <slug> plans the world with an LLM through the sandbase CLI, generates four props and an arrival with Rodin 2.5 Fast and two characters with Meshy 7.1, writes the mystery and the scripted questions, and shrinks the models so the world fits in one file. It bills your own SandBase account; playing and editing need no key.
2. **Customize and build one file** references/customize.md maps each request, such as the setting and colours, sky and weather, characters and lines, clues and questions, the answer and endings, camera timing, or another LLM or 3D model, to the files and symbols to change. WORLD=<slug> npm run build:single writes dist-single/index.html, about 5 MB with three.js and every model inlined, and no fetch, storage or external URLs.
3. **Verify every check** npm run shoot writes shots/report.json and screenshots; every step in verify.json must reach its asserted state, from the intro to the right verdict and a phone tap. Each published world passed 27 checks. npm run dev:live adds free-text questioning and LLM judging on your own machine.

## FAQ

### How do you play World Forge?

In World Forge you watch the world assemble, then walk the island as a glowing wisp. Press E near a prop to note its clue and near a character to question them. Once you have found a clue that contradicts a character, a red Confront question appears. When the arrival lands, pick one of three choices to see the ending, the truth and your score.

### Does World Forge call a model while I play?

No. The examples on this page are static builds: every question, answer and ending was written ahead of time, and the page makes no network calls. Generating a new world calls an LLM and Rodin and Meshy on SandBase, which bills your own account; npm run dev:live adds free-text questioning on your machine.

### What does generating a World Forge world involve?

Each new world makes one planning call and one mystery call to an LLM, then generates seven 3D models on SandBase: two characters with Meshy 7.1 and four props plus one arrival with Rodin 2.5 Fast. In our runs that took 4–5 minutes, and most of the cost was the two Meshy characters. Every call bills your own SandBase account; check current prices with sandbase inspect before you start.

### Can I change the LLM or the 3D model in World Forge?

Yes. Set FORGE_LLM or FORGE_NPC_LLM to another SandBase chat model, or change PROP_MODEL and CHAR_MODEL to another SandBase text-to-3D model that returns a GLB. All calls go through one chat() function, so another provider only needs that function rewritten to return the reply text and its cost; the game, the build and the checks stay the same.

### Does World Forge work on phones?

Yes. Tap the ground to walk, tap a label to inspect a prop or question a character, and tap Make your call when you are ready. On narrow screens the camera pulls back and widens so both characters stay in frame. It was verified under touch emulation, not on real devices, so check it on the phones you care about before sharing it.

## Examples

- World Forge 3D mystery game (scene)
- Neon Rain · Rooftop Market (scene)
- Return of the Cerulean Sanctum (scene)
- Late Voyage Above the Clouds (video)
- Neon Rain · Rooftop Market (video)
- Return of the Cerulean Sanctum (video)
