Called when the game object is created.
You can set the game object's properties in here, use the loader
to load textures, etc...
Called every frame as long as the game object is in the active scene.
Render the game object to the screen using the renderer's 2D context.
The renderer's context, automatically passed in.
Called every frame as long as the game object is in the active scene.
You can update your object property from here to, for example, move a
character if a keyboard key is being pressed.
Generated using TypeDoc
A game object defines an entity in your game's world.
It can be for example the player's character, a button, etc.