Compile javascript into Mindustry logic code (mlog)
fill
method of dynamic arrays is no longer inlined.concat
function having inconsistent behavior.??=
operator on a dynamic array entry computing the value twice.do
while
loop conditions.concat
calls with tagged template literals.satisfies
keyword.draw.col
command overload.unitControl.unbind
command overload.Math.asin
, Math.acos
and Math.atan
methods.Math.idiv
method to perform integer division.Math.pow
method (the **
operator is still available).op
+ jump
instructions.if/else
statements that act as guard clauses.end
instruction when necessary.setup
subcommand to the CLI.DynamicArray
macro to support arrays with variable size (and with a fixed size limit).MutableArray
macro to support dynamically indexed arrays.Memory
macros can now be created with a dynamic length
value.undefined
replaced null
as the nullish value in the compiler.unitBind
now also accepts an unit object as a parameter.unitControl.getBlock
now also returns the floor of the tile.control.color
now gets RGBA data as an input instead of individual RGB values.switch
.??
operator using normal inequality instead of strict inequality.Vars.unit.boosting
being number
instead of boolean
.Teams.derelict
(was Teams.delerict
).Math.sin
, Math.cos
and Math.tan
.null?.foo
).do while
statements.fetch
command.jump
instructions.