# words

Part of the [scripting reference](index.md), written by the engine so it matches your `frost`. Start with [your first game](../start/first-game.md) if you are new.

Use when a word of the engine is unclear, such as entity or thing, component or part, recording, run, replay, test, accept, or the two meanings of player.

One name for each thing, used by the reference, the errors, the protocol and the
editor. Where two words are in use, the second is said here once and means the same.

- **game**: a project file (`game.toml`) and every file it names. A bare scene file
  also runs as a game.
- **project file**: the `.toml` with `scene = "..."` at its top: the game's scenes,
  scripts, components, input, recording and checks. `frost reference project`.
- **scene**: a `.toml` of entities by name, each with its components. One starts the
  game; `scene.load` changes to another.
- **entity** (the editor's **thing**): what a scene names, or `spawn` makes. It has a
  number (`e3.0` in the protocol) and may have a name. `find(name)` finds it.
- **component** (`world.checksum`'s **part**): data an entity has, such as `Transform`
  or `Rect`, declared by the engine or under `[components]`. It holds **fields**:
  `get(entity, "Transform", "x")`.
- **script**: a Luau (`.luau`) or C# (`.cs`) file the project lists under `scripts`.
  The engine calls its `step(dt)` every step and its `on_scene(name)` when a scene
  starts. A **library** is a script other scripts take in with `library("kit.luau")`.
- **state**: the table a script keeps between steps that the world saves and puts back.
  A script's `local` is not state.
- **step**: one fixed tick of the game, 60 a second. Everything happens in steps; a
  step's number counts from 1.
- **action**: a named input (`jump`, `move_x`) bound to keys, buttons and sticks under
  `[input]`. Read it with `input.get` and `input.held`.
- **player** (of a game): one person playing, numbered from 0 (`[input] players`).
- **player** (of an export): the program an export copies beside the game to run it
  (`players/` beside `frost`).
- **recording**: the input a game was played with, step by step (`recording` in the
  project file, or a file it names). `frost run` and `frost test` play it.
- **run**: one play of the game's recording from step 0. Its **checksum** is of every
  world on the way; **checkpoints** are that checksum at some steps on the way.
- **replay**: the project file's `replay = { steps, checksum }`: what the run must come to.
- **test**: `frost test`: play the recording and require the replay and the shots. A
  **saved test** is another project file of the same game with a recording of its own.
- **shot**: a named frame the project lists (`shots`), kept as `shots/NAME.png`.
- **accept**: `frost test --write`: write the run's checksum and the changed shots as
  the game now plays. The game's line says ACCEPTED.
- **check**: `frost check`: load the game, play its first second, and list what is wrong.
- **template**: a small finished game `frost new` copies to start from.
- **export**: the folder `frost export web|desktop` writes for someone to play.
- **session**: a game a program serves (`frost serve`, `frost mcp`, the editor). Its
  **commands** are the protocol's (`game.step`); over MCP the same are **tools**
  (`game_step`).
