Class script

Script class

Methods

script:clear () reset script environment.
script:load (filename) load a script from the /scripts folder.
script:run () load engine, execute script-specified init (if present).
script:metadata (filename) load script metadata.


Methods

script:clear ()
reset script environment. ie redirect draw, key, enc functions, stop timers, clear engine, etc.
script:load (filename)
load a script from the /scripts folder.

Parameters:

  • filename string file to load. leave blank to reload current file.
script:run ()
load engine, execute script-specified init (if present).
script:metadata (filename)
load script metadata.

Parameters:

  • filename string file to load

Returns:

    table meta table with metadata
generated by LDoc 1.4.6 Last updated 2020-03-28 23:45:19