Coming from Godot#
Note. The command is
venin today's builds and becomesfrostat launch, and so do the names built from it.
Godot already gave you scenes as text files and a small scripting language. Coldwave goes one step further: every part of a game is text, scripts are Luau or C#, and the engine steps at a fixed rate so every run replays exactly. This page maps what you know to what Coldwave calls it.
Note. There is no importer for Godot projects yet. You move a game over by hand, or with an AI agent working from these pages. Because Godot's scenes are text too, an agent can read them and write the Coldwave scenes for you.
What maps to what#
| In Godot | In Coldwave |
|---|---|
| Node | A thing: a number with an optional name, made of components (things). Behaviour comes from the components a thing has, not from a node type |
Scene (.tscn) | A scene: a TOML file of named things and their components (scenes) |
| A scene instanced into another | No instancing yet: spawn a thing with its components from a script, or keep the group in a scene |
| GDScript | Luau, or C# |
_ready() | on_scene(name), called when a scene has started |
_process(delta) and _physics_process(delta) | One step(dt), called 60 times a second at a fixed step |
| Signals | Events: send("hit", thing, 1) in one script, events("hit") in another |
@export variables | [tuning] numbers in game.toml, which you can change while the game runs |
| Input Map actions | [input] actions and [input.keys] in game.toml, read with input.get |
| Groups | A component of its own for each kind of thing (Moth = {}), found with each("Moth") |
get_tree().change_scene_to_file() | scene.load("level2.toml") |
What carries over#
- Text you can diff. Your habit of reviewing scene changes in git keeps working, and now covers the whole project.
- A small, friendly language. GDScript and Luau are both short and dynamic; Luau adds optional types, and
frost reference --types game.tomlwrites them for your game. - Your art. PNG pictures, glTF models with their animation clips, WAV sounds and OGG music. JPEG pictures are not read yet: convert them to PNG.
What does not#
- The node tree as behaviour. A thing can sit under a parent, but what it does comes from its components and your scripts, not from inheriting a node type.
- Separate idle and physics updates. There is one fixed step. Every step is exactly 1/60 s of game time, so the same input always plays the same game.
- Script variables as game state. What your game must remember lives in components or in a script's
statetable. A plainlocalis a cache: a reload or a replay does not keep it.
The same move, before and after#
A hero that walks left and right, in GDScript:
extends Node2D
@export var speed := 90.0
func _physics_process(delta):
position.x += Input.get_axis("left", "right") * speed * deltaIn Coldwave, with speed = 90 under [tuning], a move_x action in game.toml and a thing named hero in the scene:
function step(dt)
local hero = find("hero")
local x = get(hero, "Transform", "x")
set(hero, "Transform", "x", x + input.get(0, "move_x") * tuning.speed * dt)
endWhere to go next#
- Install
frost, then make your first game. - Gameplay in Luau: what a script keeps, and how reload works.
- Things and components: how a game is put together.