# Coldwave > A game engine for 2D and 3D where every run replays. Rust underneath, Luau and C# for gameplay, one protocol that people and agents drive equally. Every page below is Markdown. If you are an agent making a game, read the reference core first ([reference/core.md](reference/core.md)), then one page or call at a time; `frost reference` prints the same text offline. [llms-full.txt](llms-full.txt) is every page in one file. ## Coldwave - [Home](index.md): Coldwave is a 2D and 3D game engine in private development, open source at launch. Write gameplay in Luau or C#, test by replaying recorded runs, and export to the web, the desktop, iPhone and Android. ## Get started - [Docs home](docs/index.md): The Coldwave documentation: install, your first game, concepts, guides, coming from another engine, AI agents and the reference. - [Install](start/install.md): frost is the one program you need. - [Your first game](start/first-game.md): In about ten minutes you will have a game you changed yourself, checked, and exported for the web and the desktop. - [The editor](start/editor.md): Coldwave, the editor, is a desktop app for making your game: the running game in the middle, with its things, its code, its assets and its timeline around... ## From other engines - [From Unity](from/unity.md): Unity ideas in Coldwave terms, with code before and after. - [From Godot](from/godot.md): Godot ideas in Coldwave terms, with code before and after. - [From Defold](from/defold.md): Defold ideas in Coldwave terms, with code before and after. - [From Unreal](from/unreal.md): Unreal ideas in Coldwave terms, with code before and after. ## Concepts - [Things and components](concepts/things.md): Everything in your game is a thing, and what a thing is comes from the components you give it. - [Scenes](concepts/scenes.md): A scene is one level, menu or room of your game, written as a TOML file of things: each table is one thing, its key the thing's name, its entries its... - [Steps and determinism](concepts/steps.md): Your game plays the same way every time, on every machine. - [Recorded runs and checkpoints](concepts/runs.md): Play your game once, keep the recording, and you have a test: frost test plays it again and tells you whether the game still goes the same way. - [The protocol](concepts/protocol.md): Anything you can do to your game by hand, a program can do too. ## Guides - [2D](guides/2d.md): Draw a 2D game with rectangles, sprites, text, tilemaps and shapes, ordered by layer and seen through a camera. - [3D rendering](guides/3d-rendering.md): Make a 3D game look the way you want: models and shapes, materials, lights and shadows, the sky, fog, ambient occlusion, bloom, smooth edges and effects. - [Animation and posing](guides/animation.md): Make things move without writing a line of script for each step: clips that play frames of a sheet, tweens that take a number somewhere over a time, specks... - [Physics](guides/physics.md): Physics recipes with measured numbers: how stiff a stack is, belts, ledges and stairs, a forgiving jump and one-way platforms. - [Input](guides/input.md): Bind keys, gamepads, the mouse and touch to your game once, and your scripts never need to know which one the player is using. - [Interface](guides/ui.md): Build menus, buttons, sliders and a HUD without writing layout code. - [Audio](guides/audio.md): Play sound effects and music from your scripts, and check what a game plays without speakers. - [Atlases](guides/atlases.md): Many pictures on one, each frame by name: one draw call for a layer of sprites. - [Streaming worlds](guides/streaming.md): Build a world bigger than you could keep loaded at once. - [Multiplayer](guides/networking.md): Add online multiplayer for 2 to 8 players: host and join from the command line or your own menu, with rollback keeping every player's game the same. - [Undo an agent's change](guides/undo-landing.md): Take back one change an AI agent merged into your game, and keep everything made after it. - [Gameplay in Luau](guides/luau.md): You write your game's rules as Luau scripts: a small, fast language, sandboxed by the engine, with no JIT. - [Gameplay in C#](guides/csharp.md): Write your game's scripts in C#: the same calls as Luau, live reload while you work, and a desktop export that needs no .NET. - [Fusion: C# on the web](guides/fusion.md): Fusion compiles your C# gameplay to WebAssembly, so it runs in the browser with no .NET runtime. - [Export to phones](guides/export.md): Put your game on an iPhone or an Android phone: what to write for touch screens, the export commands, and what a real device and a store need. - [Debugging](guides/debugging.md): A bug you saw once, you can see again: every run of a game replays to the bit, so you can stand at the same step, with the same values, as often as you need. - [Profiling](guides/profiling.md): Find where a step's time goes, and show that your change made the game faster. ## Showcase and status - [Showcase](showcase.md): What has been made with Coldwave so far: an open-world game, two games ported from other engines, and the finished small games you can copy and change with... - [What works today](status.md): This page describes frost 0.0.1 r289, its 8 templates and its 107 protocol commands. - [Changelog](changelog.md): What is new, and what to change in a game made with an older version, newest first. - [Credits](credits.md): Who made the third-party art and music shown on this site, under which licence, and what was changed. ## For AI agents - [Start here](agents/index.md): This page is for an AI agent making or changing a Coldwave game, and for the person setting one up. - [Claude Code and Codex](agents/harnesses.md): Set up Claude Code or Codex to work on your game: the skills, AGENTS.md and MCP server every new game comes with. - [Recipe: a third-person 3D game](agents/recipes/third-person.md): Goal: a hero the player turns and walks, the camera behind it, on a floor with things to walk round, under a sky with shadows. - [Recipe: stream a world](agents/recipes/streaming.md): Goal: a world bigger than what is kept alive at once, cut into cells that enter near the player and leave behind, with the run still replaying to one checksum. - [Recipe: profile a frame](agents/recipes/profile-a-frame.md): Goal: find what a slow step spends its time on, change it, and prove the change made it faster without changing the game. - [Recipe: debug a script](agents/recipes/debug-a-script.md): Goal: find why a value is wrong. - [Recipe: prove a change](agents/recipes/prove-a-change.md): Prove a behaviour change when the recorded run no longer holds. - [Recipe: export to the web, desktop, iPhone and Android](agents/recipes/export.md): Goal: a game that plays outside frost, proved to be the same game: the exported player, fed the recording, stands at the same checksum frost run prints. - [Recipe: choose C# or Luau](agents/recipes/csharp-or-luau.md): Goal: choose the language for a game's scripts, knowing what each can do today. ## Reference - [Scripting reference](reference/index.md): Every reference page and what it is for. - [core](reference/core.md) - [scripts](reference/scripts.md) - [drawing](reference/drawing.md) - [3d](reference/3d.md) - [physics](reference/physics.md) - [joints](reference/joints.md) - [animation](reference/animation.md) - [sound](reference/sound.md) - [input](reference/input.md) - [ui](reference/ui.md) - [state](reference/state.md) - [event-flow](reference/event-flow.md) - [project](reference/project.md) - [render](reference/render.md) - [csharp](reference/csharp.md) - [export](reference/export.md) - [protocol](reference/protocol.md) - [cli-2](reference/cli-2.md) - [2](reference/errors/2.md) - [Protocol commands](reference/protocol-commands.md): Every protocol command, by group. - [Command line](reference/cli.md): Every frost command, how to call it and what it does, from frost --help. - [Error and warning codes](reference/errors.md): Every error and warning code, linked to where it is explained. ## Coming next - [Physical sky](soon/physical-sky.md): A sky worked out from a real atmosphere, with clouds, a moon and stars, that you turn on with one field. - [GPU skinning](soon/gpu-skinning.md): Crowds of animated characters get cheaper to draw, with nothing for you to change. - [Engine effects](soon/effects.md): Fire, smoke, sparks and glows made from pictures on cards, without writing a shader.