Module core_runtime
The runtime module of Micro2D.
Info:
- Author: Sharper Dev
Functions
| CoreRuntime.endRuntime () | Terminates graphics and audio, then exits to the HOME Menu. |
| CoreRuntime.requestUnload (scene) | Queues a scene for unloading during the runtime loop. |
| CoreRuntime._start () | Initializes graphics, audio, time tracking, and the initial scenes. |
| CoreRuntime._loop () | Processes one runtime frame: input, collisions, component updates, and rendering. |
Local Functions
| preClean () | Clears startup artifacts by briefly drawing black to both screens. |
| checkScenesToUnload () | Unloads scenes queued for removal. |
Functions
- CoreRuntime.endRuntime ()
-
Terminates graphics and audio, then exits to the HOME Menu.
Usage:
CoreRuntime.endRuntime() - CoreRuntime.requestUnload (scene)
-
Queues a scene for unloading during the runtime loop.
Parameters:
- scene Scene Scene to unload.
Usage:
CoreRuntime.requestUnload(scene) - CoreRuntime._start ()
-
Initializes graphics, audio, time tracking, and the initial scenes.
Usage:
CoreRuntime._start() - CoreRuntime._loop ()
-
Processes one runtime frame: input, collisions, component updates, and rendering.
Usage:
CoreRuntime._loop()