Overview

What Tempo does

Tempo is a system that lets the game create crisis situations on its own. A director quietly seeds conditions — fire, rain, wind — and the world reaction layer picks them up and lets the situation grow, the way a fire spreads. You don't have to script every scene by hand; a different situation emerges every time.

Two games inspired it:

  • Left 4 Dead — automatically adjusts the intensity (the tempo) of the action.
  • The Legend of Zelda: BotW — fire, water and electricity react with each other by fixed rules.

Why "Tempo": what this package ultimately does is adjust the game's tension tempo (its rise and fall).

The loop

[Director]  ──seed conditions (fire/rain/wind/lightning)──▶  [World Reaction]
   ▲                                                          │
   │  receives tension back                                   │ computes results (spread/quench/charge)
   │  (player threat + what's happening nearby)               ▼
   └──────────────────  [Tension Model]  ◀── player threat / live events

Every frame the three parts run in the same order: tension → director → world.

PartClassRole
World reactionWorldReactionSpreads by rules on a grid; updates the list of live events
DirectorDirectorBrainReads tension, picks a phase, seeds conditions within budget
Tension modelTensionModelCombines player threat + nearby events into one 0–1 number

Core principles

  1. Split the two roles. The world reaction has no idea the director exists. It only spreads by rules.
  2. The director never spawns enemies. It only seeds conditions (fire, rain, wind, storm clouds upstream).
  3. The director watches one number — tension (0–1): player threat combined with nearby events.
  4. All the numbers live outside the code. Rule tables, thresholds and weights are data a designer edits without code.

Next