Skip to content

Rengy Script

Keywords

The whole list. The language is small on purpose.

component
Starts the script: component Name { … }, or component Name : Area { … } to pick a base.
enum
Declares a set of named choices a field can hold.
fn
Declares a hook: fn loop(dt: f32) { … }.
let
Declares a local value inside a hook.
if
Runs a block when a condition is true.
else
Runs a block when the if before it did not.
for
Repeats a block with a counter that starts at the first end and goes up by 1 while it is below the last: for i in 0..4 { … } runs it for 0, 1, 2 and 3.
in
Joins a for loop's counter to its range: for i in 0..4.
await
Waits, in place, for a timed builtin or an awaitable to finish.
true
The bool that is on.
false
The bool that is off.