/l
move left/r
move right/u
move up/d
move down/m
move in the same direction as the trigering cell/c
rotate clockwise/w
rotate counter-clockwise
l:
triger on cells pushing leftr:
triger on cells pushing rightu:
triger on cells pushing upd:
triger on cells pushing downa:
triger on cells pushing anywherec:
triger on cells rotating this cellt:
trigers every time this cell is ticked
l>
move the cell on the left in a given wayr>
move the cell on the right in a given wayu>
move the cell on the up in a given wayd>
move the cell on the down in a given wayt>
return a value, ends this functions execution and sets the get value of this function to the returned value
?d
the direction of a given cell?n
the id of the given cell?c
check if there is a cell in a given location
double quotes are strings/numbers. variables are defined and set using name=val. functions can only be defined, never set.
!s
stops the current part of this rulename$=(inputs){commands}
function, works exactly the same as variable definitions but can store rules and can be inherited from other cells$(inputs)name
runs a specified function@name
accesses a variable, put infront of the round bracket in the run rule command to state what rule to run, replace name with the name of the var/rule?|
run a command if the thing on the left of it is true, formated ast/r?com|otrcom
: t/r is true/false, com is command, otrcom is other commandna
do nothing
cdir
current directioncnam
the type of this cellimp
function, imports functions and trigers from a cell/module, usage:$(type <string>)imp
pos
function, gets a cell at a specified location for acting on, usage:$(x: <number>, y: <number>)pos
call
function, run a function from the main tile sprite, usage:$(fname: <string>, inputs)call
newNeighbor
function, creates a new neighbor with a specific id in a specific location, usage:$(dir: <number|direction|position>, id: <string>)newNeighbor
moveable verticaly
when imported allows the cell to be pushed on the vertical axisrelative moveable verticaly
when imported allows the cell to be pushed up and downmoveable horizontally
when imported allows the cell to be pushed on the horizontal axisrelative moveable horizontally
when imported allows the cell to be pushed left and rightmoveable left
when imported allows the cell to be pushed leftmoveable right
when imported allows the cell to be pushed rightmoveable up
when imported allows the cell to be pushed upmoveable down
when imported allows the cell to be pushed downrelative moveable left
when imported allows the cell to be pushed leftrelative moveable right
when imported allows the cell to be pushed rightrelative moveable up
when imported allows the cell to be pushed uprelative moveable down
when imported allows the cell to be pushed downmoveable any
when imported allows the cell to be pushed in any directionboard manipulation
allows the cell to modify the level in any way it wantsrandom number
adds functions for generating random numberssleep
adds a function for pausing the execution of code by this cell
move $("relative moveable vertically")imp,tick$=(){u>/u,/u},t:$()tick