Posted May 03, 2023 by MakeAvoy
It’s late so I’ll keep it short but this is a massive update, and I’ve changed the lua syntax somewhat drastically (hopefully for the better). Appreciate feedback on the command names as I feel this may be polarizing and they may change several more times before I consider them “final”. New site to see commands is WIP you can view it here https://petrichor64.app/
conn
command to make a tcp connection to an ip or address! Very early version only works with sending strings with a carriage return indicating termination. Should work with a ping pong server if you check for ‘\r’. More to come!spawn
is now make
, mouse
is now mus
, button
is now btn
, analog
is now abtn
, sound
is now note
, silence
is now mute
, model
is now mod
, lmodel
is now lmod
, group
is now lot
. subload
is now simply sub
(Would someone mistake a subprocess command as subtract? Time will tell. ), overload
is now over
, input
is now cin
, dchunk
and dtiles
are now merged into a single method dtile
.log
which acts like print
which it also overrides, is now called by cout
so no one is confused thinking it’s logarithm. Is it worth saving a single character? Yes. print
still works too.print
/cout
now works with variable number of arguments (including images and entities) as it normally should without having to concat first. print('test',1,2)
yields test, 1, 2pow
for exponents, log
is now for base 10 logarithms as you’d expectrou
to round a value instead of just floor or ceilinggtile
command to get asset/texture at tile position, use for checking what’s placed wheremus().scroll
draw
function to your app or game will be called every time the the windows resizes. Builtin debounce. This is useful if you don’t desire to constantly redraw every looptex
function is now synchronous to prevent unexpected texturing behavior