Docs Quick code
Safety
What Quick code can and can't reach (no files, no network, no programs), the limits that stop runaway code, and what opening someone else's project or save can do.
Quick code runs inside your game, and only there. It can move objects, show text, play sounds and save the player's progress. It can't reach anything else on the computer.
#What Quick code can't do
- Files. Code can't open, read, write or delete files.
save_game()takes a slot number, not a path, and saves always go into the game's own save folder. - The network. There is no way to make web requests or talk to other computers.
- Programs. Code can't start programs, run commands or load other scripts from disk.
- The engine underneath. Code only sees the functions in the reference. Hidden names and the engine's own object methods are blocked.
#Limits that stop runaway code
A mistake in code stops with a message on the line that caused it. It doesn't freeze the editor or the player's game.
- A loop that goes round 10,000 times without a
wait()is stopped. - One run of code (with every
pcall,sortorfilterit calls) may take 750 ms without await(). Long work that waits now and then is fine. - A text can't grow past 1,000,000 letters (
rep,..,join,replace,format). range()makes at most 100,000 numbers, and functions can call each other 200 deep.
#Opening someone else's project
A project is levels, models, sounds and Quick code, read as plain data. Opening one can't run programs on your computer. Its Quick code runs only when you press Play, and then only with the limits above. A broken or cut-off project shows an error instead of crashing, and so does a share code.
Save files work the same way: records, options and achievements are read as plain values, and a file holding anything else is ignored.
When you export a game, it holds your project and the player only. No other files in your project folder go with it.
Get an email when Voxel Game Maker launches
It's coming to Steam with a launch discount. One email on launch day, the odd progress update, nothing else.