-
-
Push a new scene in the stack
Name |
Type |
Description |
scene |
SceneGame
|
The scene to push |
-
-
Pop (remove) the last scene in the stack
Returns:
Type |
Description |
SceneGame
|
The last scene that is removed |
-
-
Pop (remove) all the scene in the stack
-
-
Replace the last scene in the stack by a new scene
Name |
Type |
Description |
scene |
SceneGame
|
The scene to replace |
Returns:
Type |
Description |
SceneGame
|
The last scene that is replaced |
-
-
Get the scene at a specific index in the stack. 0 is the bottom of the
stack
Name |
Type |
Description |
i |
number
|
Index in the stack |
Returns:
Type |
Description |
SceneGame
|
The scene in the index of the stack |
-
-
Check if the stack is empty
Returns:
-
-
Check if top content is loading
Returns:
-
-
Push the title screen when empty
Returns:
-
-
Update the stack
-
-
First key press handle for the current stack
Name |
Type |
Description |
key |
number
|
The key ID pressed |
-
-
First key release handle for the current stack
Name |
Type |
Description |
key |
number
|
The key ID released |
-
onKeyPressedRepeat
(key)boolean
-
Key pressed repeat handle for the current stack
Name |
Type |
Description |
key |
number
|
The key ID pressed |
Returns:
Type |
Description |
boolean
|
false if the other keys are blocked after it |
-
onKeyPressedAndRepeat
(key)boolean
-
Key pressed repeat handle for the current stack, but with
a small wait after the first pressure (generally used for menus)
Name |
Type |
Description |
key |
number
|
The key ID pressed |
Returns:
Type |
Description |
boolean
|
false if the other keys are blocked after it |
-
-
Draw the 3D for the current stack
-
-
Draw HUD for the current stack