Keywords
The whole list. The language is small on purpose.
- component
- Starts the script:
component Name { … }, orcomponent 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
ifbefore 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
forloop'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
boolthat is on. - false
- The
boolthat is off.