DecayKnowledgebase
Sindri's gameplay language

Build game logic.
Keep Rust underneath.

Decay is a Rust-inspired, statically typed language made for gameplay. Learn it by building, look up exact syntax when you need it, and get back to your game.

player.decay
script Player {    @export    var speed: f32 = 220.0;    fn update(dt: f32) {        let direction = Input.axis("move_left", "move_right");        this.transform.position.x += direction * speed * dt;    }}
Start here

Learn by making things happen.

Short lessons introduce language features when a game actually needs them. Revolutionary concept, apparently.

01Your first Decay scriptAdd frame-by-frame behaviour to a Sindri entity.Read →
02Values & typesValues, mutability, primitives and vectors.Soon
03FunctionsTurn behaviour into readable, reusable pieces.Soon
04Control flowBranch and loop because the game asks you to.Soon
05VectorsPositions, directions and the arithmetic between them.Soon
06Entities & scriptsUnderstand where gameplay behaviour lives.Soon
Cookbook

How do I…?

Answers for when you already know enough Decay and simply need the thing on screen to behave.