DE EN FR ES IT

Haingeist / Engine

Our own engine

For us, a game is a data folder.

The Wurzelwerk engine is our self-written engine for point-and-click adventures. Wurzelwerk is German for ‘root system’ – the roots beneath every Haingeist game. It used to be named after the first game that ran on it: the Spätlese engine. Scenes, puzzles, dialogue and text are data. We program the engine, not each individual game.

  • TypeScript
  • PixiJS
  • Vite
  • runs in the browser
  • touch first
  • 4 games
Painted village square from Spätlese 404 with fountain, half-timbered houses and vineyards
Spätlese 404, the first game on the Wurzelwerk engine.

At a glance

Games on the engine

Spätlese 404, Tatort RMH, Persona non grata, Loreley Calling. FaxFight is a separate web project and does not use the engine.

A game contains

Only JSON files and assets in one folder. No game-specific program code.

Checks

Schema and cross-reference validation, solution test and dead-end search across the state space; more than 100 automated tests.

Output

Static web build with relative paths that runs from any subfolder; save games stay in the browser, no server needed.

Data-driven

Rules instead of code.

Almost all game logic is a list of rules { "when": …, "do": [ … ] }. The first matching rule runs. Conditions check flags, inventory and variables; actions show lines, hand out items, change scenes or start dialogues.

A game folder contains:

  • game.json – manifest, start scene, endings, combinations
  • scenes/*.json – backgrounds, walkable area, depth, hotspots
  • dialogs/*.json – nodes with lines and choices
  • prompts/*.json – prompt puzzles built from blocks
  • lang/de.json – all text; the data only holds keys
  • solution.json – the walkthrough for the playthrough test
Example: a hotspot as JSON
{
  "id": "brunnen",
  "walkTo": { "x": 160, "y": 420, "facing": "n" },
  "on": {
    "use": [
      { "when": { "flag": "muenze_genommen" },
        "do": [{ "op": "say", "text": "…brunnen.leer" }] },
      { "do": [{ "op": "give", "item": "muenze" },
              { "op": "set", "flag": "muenze_genommen" }] }
    ]
  }
}

Shortened example from the engine documentation: the first time you use the fountain (“Brunnen”) it gives you a coin (“Münze”), after that only a comment.

What the engine does

Built for adventures you play on your phone.

Prompt puzzles

Puzzles as forms: the player assembles a prompt from building blocks, and rules per field decide what happens. A good fit for games about AI and agency life.

Hint system

The hint button helps in three steps: first highlight hotspots, then give a hint, then point the way. Hints live as data in the manifest.

Touch first

Tap instead of hover: tapping a hotspot offers “look” and “use”, exits react directly. Fixed logical resolution of 1280×720, scaled to any landscape screen.

Walking without sliding

Pathfinding on walkable areas via a visibility graph, depth scaling per scene, and the walk cycle follows the distance actually covered.

Multiple characters

Optionally with switchable player characters: portraits, start positions, handing items over. Single-character games run unchanged.

Audio in channels

Music, voice, ambience and effects with separate volume, music ducked under voices, gapless loops and crossfades; voices per speaker and variant.

Save games with migration

Several save slots with a data version. When flags change, migrations translate old save games.

Ambience

Purely visual loops and small gimmicks per scene, with no effect on game logic. They stand still when reduced motion is requested.

Terms in our glossary: data-driven design · hotspot · prompt puzzle · hint system · walkable area · pathfinding · walk cycle · audio ducking · save migration · headless engine

Automated playtest

The engine plays every game. Every path.

Because the game logic runs without graphics, a test program can use the very same runtime as the game.

  • Walkthrough (automated playtesting): solution.json is replayed step by step; any invalid step fails the test.
  • Dead-end search: the test tries every move through the state space (dialogues, prompt rules, items, combinations) and reports every state from which no ending can be reached.
  • Play-time estimate: reading time, walking and thinking add up to an estimated duration.
11,598

states searched for Spätlese 404, 78,550 transitions, 0 dead ends.

173,495

states for Persona non grata, 0 dead ends (as of 14 Nov 2026).

≈ 20 min

estimated play time of the Spätlese prototype along the walkthrough; Tatort RMH currently ≈ 46 min, Persona non grata ≈ 35 min.

The estimate measures the shortest walkthrough. First-time players usually take longer.

Pipeline

From script to browser.

Graphics and audio are made outside the engine and plugged in as files. Swapping them needs no code change.

Production pipeline Script and concept feed three sources: AI backgrounds, Blender characters as sprite sheets, voices and music. Everything flows with the JSON game data into validation and playtest, and from there into the web build. Scriptconcept, puzzles, gags AI backgroundsimage model, retouched Blendercharacters, sprite sheets Voices, musicElevenLabs, logged JSON datascenes, rules, text Playtest0 dead ends? Buildbrowser

Backgrounds

SVG, PNG or WebP in the aspect ratio of the play area. Painted with an image model (gpt-image-2) or built as a diorama in Blender; backgrounds can tint characters, e.g. for night scenes.

Characters

Blender scripts generate character, rig and sprite sheet with animations for four or eight directions, plus a small description with anchor point and stride length.

Audio

Voices (eleven_multilingual_v2) and music (ElevenLabs Music) are assigned per line or per scene. Every file generated via an API is logged with model and settings.

More in the glossary: generative backgrounds · sprite sheet · toon shading · AI voice acting

New game

Five steps to the next game.

  1. Step 1Create a folder games/<id>/.
  2. Step 2Write one scene, one character and one walkthrough as JSON.
  3. Step 3Run the playtest: check data, walkthrough and dead ends.
  4. Step 4Add a playthrough test so every change gets checked.
  5. Step 5Preview and build: the result is a static folder for the web.

On the engine

Four adventures, one engine.

Each of these games is a data folder for the Wurzelwerk engine. FaxFight is a separate web project and does not run on the engine.

Spätlese 404

Prompt puzzles and three-step hints; 11,598 states without a dead end.

Prototype (v0.1), playable online (free)

Tatort RMH

Four switchable characters, sets built as a Blender diorama.

In development

Persona non grata

Three player characters who hand items over; 173,495 states without a dead end.

In development – acts 1 to 4 playable

Loreley Calling

Form puzzles and radio direction finding on the Middle Rhine.

In development

Questions about the engine?

The engine is not public at the moment. If you are curious about the tech, get in touch. Or get notified when a new game becomes playable.

Opens your email program. No form, no newsletter service.

info@haingeist.com