# Coldwave: every run, replayed exactly

A free game engine for 2D and 3D, with gameplay in Luau or C#. The same seed and input
give the same game at every step, so you and your coding agent can change a running game
and prove what changed. Coldwave is in private development, and open source at launch,
under MIT or Apache-2.0; no fees, no revenue share, no account, no telemetry.

[Read the docs](docs/index.md), starting with [your first game](start/first-game.md). If you are an
agent, start from [llms.txt](llms.txt).

The front page's picture: a recorded run of a game drawn along a horizon line, one mark
for each step, and the same recording replayed under it, mark for mark, with the same
checksum. When one input is changed in the replay, the first step that differs is named;
rewound to its checkpoint, both halves match again.

## Watch an agent change a running game

One change to Cinder, a platformer that comes with the engine, from the request to the
proof, all of it what `frost` 0.0.1 r289 printed or drew:

1. **Ask.** "Make the hero jump higher. Show me that nothing else in the run changed
   before the first jump." A new game comes with instructions and skills for its agent.
2. **Read the game.** The agent seeks to a step of the recording, reads the world, plays
   with its own input and gets back a checksum and a picture
   ([the protocol](concepts/protocol.md)).
3. **Change it live.** One number in the script changes and the script reloads while the
   game plays; the two runs match until the first jump.
4. **Prove it.** `frost test` plays the recorded run again and names the first step that
   differs, the value and the line that wrote it; a change that is meant is accepted
   ([recorded runs](concepts/runs.md)).

```terminal
$ frost new mygame --template embers
$ frost check mygame/game.toml
$ frost test mygame
mygame/game.toml: ok: 2653 steps to run checksum c3c50481c8ab98c7
```

It works with Claude Code, Codex, any MCP client and any JSON-RPC program.

## One recording, every screen in step

Twelve screens play one recorded run of Ballast. Fork one, and it gets different input
from the next checkpoint on; the engine names the first step where its world is no
longer the recording's. On the front page this is a recording of the engine, not the
engine running.

## Made with Coldwave

an open world in 3D written in C# and a game ported from Unity: each replays its recorded run exactly.

- **Caravan.** An open world in 3D written in C#: a hired guard walks a caravan across one
  day, from the steppe at dawn to the mountain pass at dusk.
- **Scrap Riot.** A twin-stick factory brawler in 2D, first made in Unity and ported
  with its gameplay in Luau.
- **8 templates to start from.** `frost new mygame --template arena`, and
  Ballast, Breaker, Cinder, Embers, Pong, the shooter and a blank game.

[See the showcase](showcase.md).

## 107 commands: the editor has no private way in

Every command the editor uses is open to a program over JSON-RPC or to an agent over MCP,
grouped by what it is for: the world, copies of the game, the debugger, game and time,
network play, project files, who wrote a value, sessions, scripts, pictures, assets and
more. See [the protocol commands](reference/protocol-commands.md).

## Fast by design, measured in the open

- No garbage collector in the engine: Rust underneath, and no allocation in the
  engine's frame loop.
- A C# script is lent each component as the world's own memory, a span per field.
- Shaders are built ahead of time, so nothing compiles while you play.
- `frost bench --check` fails when a game goes over its time budget.

An empty game exports to 4.6 MB for the desktop; on the web it is
1.1 MB gzipped with WebGPU and {{facts:empty_game.web.webgl2.gzip|mb2}} with WebGL2. A median step of the Embers
template takes 0.0424 ms (`frost bench`, `frost`
0.0.1 r289, measured 2026-11-30).

## Bring your game

Each page maps what you know to what Coldwave calls it. There are no automatic
importers yet. [From Unity](from/unity.md), [from Godot](from/godot.md),
[from Defold](from/defold.md), [from Unreal](from/unreal.md).

## Where your game runs today

| Where | Today |
| --- | --- |
| Web | `frost export web` writes a folder for any static host. Tested in Chrome, WebGPU and WebGL2 |
| Desktop | Tested on macOS on Apple silicon. Linux builds. Windows is not verified yet |
| iPhone | Tested in the simulator only. Real devices and signing are not ready yet |
| Android | An arm64 apk signed with a debug key, tested in the emulator only |

Coldwave is in private development, with no public download yet; it will be open source
at launch, under MIT or Apache-2.0.
[What works today](status.md) lists plainly what does not work, and
[the changelog](changelog.md) what changed lately. Coming next:
[a physical sky](soon/physical-sky.md), [GPU skinning](soon/gpu-skinning.md) and
[engine effects](soon/effects.md).
