0.5.3
- add a new built-in JavaScript function
asFloat
to cast an integer value returned by theMemory.Read
command to a floating point number (IEEE 754)
var gravity = asFloat(Memory.Read(gravityAddress, 4, false)); // the gravity var now holds a floating point number
- auto-generated
*.d.ts
files now make a distinction between integer and floating-point parameters, VS Code autocomplete now displays them withint
andfloat
types respectively - auto-generated
*.d.ts
files now have/// <reference no-default-lib="true"/>
so it is no longer needed to add this line in a script file to exclude unsupported JS commands from autocomplete - fix:
op
incorrectly returned any single value as integer regardless of the type information - fix:
showTextBox
command was missing in thecleo.log
withlogOpcodes=1