2023-08-22 07:29:53 -05:00
|
|
|
# Yugine Scripting Guide
|
|
|
|
|
2023-10-17 12:22:06 -05:00
|
|
|
Script hooks exist to allow to modification of the game.
|
|
|
|
|
|
|
|
|config.js|called before any game play|
|
|
|
|
|game.js|called to start the game|
|
|
|
|
|editorconfig.js|called when the editor is loaded, used to personalize|
|
|
|
|
|debug.js|called when play in editor is selected|
|
|
|
|
|
2023-08-22 07:29:53 -05:00
|
|
|
All objects in the Yugine can have an associated script. This script can perform setup, teardown, and handles responses for the object.
|
|
|
|
|
|
|
|
|function|description|
|
|
|
|
|---|---|
|
|
|
|
|start|called when the object is loaded|
|
2023-10-17 12:22:06 -05:00
|
|
|
|update(dt)|called once per game frame tick|
|
2023-08-22 07:29:53 -05:00
|
|
|
|physupdate(dt)|called once per physics tick|
|
|
|
|
|stop|called when the object is killed|
|