Add console object; add intuitive object view; console clear; add play hooks
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
# Yugine Scripting Guide
|
||||
|
||||
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|
|
||||
|
||||
All objects in the Yugine can have an associated script. This script can perform setup, teardown, and handles responses for the object.
|
||||
|
||||
|function|description|
|
||||
|---|---|
|
||||
|setup|called before the object is loaded|
|
||||
|start|called when the object is loaded|
|
||||
|update(dt)|called once per game frame|
|
||||
|update(dt)|called once per game frame tick|
|
||||
|physupdate(dt)|called once per physics tick|
|
||||
|stop|called when the object is killed|
|
||||
Reference in New Issue
Block a user