# Coming from Unreal

Coldwave is a much smaller engine, made for games one person or a small team can hold in
their head. Moving a game over is a rebuild: the design and the models carry across, the
code and Blueprints do not. There is no importer for Unreal projects yet. Check
[what works today](../status.md) before you start: there is no level of detail, no
reflection probes, and at most eight point and spot lights.

## What maps to what

| Unreal | Coldwave |
| --- | --- |
| Actor | A thing: a number with an optional name, made of components ([things](../concepts/things.md)) |
| Actor and Scene Components | Components: `Transform`, `Mesh`, `Light`, `Body` |
| Level | A scene: a TOML file of named things and their components ([scenes](../concepts/scenes.md)) |
| Blueprint graph | A script in Luau or C# |
| C++ gameplay classes | Scripts in C# or Luau; the engine's own code is Rust |
| `Tick(DeltaTime)` | One `step(dt)`, called 60 times a second at a fixed step |
| `BeginPlay` | `on_scene(name)`, called when a scene has started |
| Event dispatchers | `send("hit", thing, 1)` in one script, `events("hit")` in another |
| Data Assets and Data Tables | A data file a script reads (`data("levels/one.toml")`) |
| Enhanced Input actions | `[input] actions` and `[input.keys]` in `game.toml` |
| Automation tests | A recorded run that `frost test` replays to a checksum ([recorded runs](../concepts/runs.md)) |

## Movement

An actor that slides along x. In Unreal C++:

```cpp
void AHero::Tick(float DeltaTime)
{
    Super::Tick(DeltaTime);
    AddActorWorldOffset(FVector(Speed * DeltaTime, 0.f, 0.f));
}
```

In Coldwave, with `speed = 90` under `[tuning]` and a thing named `hero`:

```lua
function step(dt)
    local hero = find("hero")
    set(hero, "Transform", "x", get(hero, "Transform", "x") + tuning.speed * dt)
end
```

## What carries over

- **Models and animation**, as glTF: meshes, materials, rigs and clips. Second UV sets,
  lights and cameras inside a glTF are not read yet.
- **Your design.** Levels, rules and tuning move across as ideas. An AI agent can rewrite
  scenes and scripts with you, a scene at a time.

## What changes

- **Code is rewritten.** Blueprints and C++ become scripts.
- **The renderer is smaller.** No bounce light, no screen-space reflections, no level of
  detail ([3D rendering](../guides/3d-rendering.md)).
- **The tick is fixed.** Every step is 1/60 s of game time, so the same input always plays
  the same game.

## Next

[Your first game](../start/first-game.md), starting from the `embers` template, a small
third-person game in 3D. [Third-person 3D game](../agents/recipes/third-person.md) has
the exact steps.
