new SceneGroup()
SceneGroup allow to group scenes together.
This is the composite object of the composite pattern.
- Source:
Members
-
<private> childs :!Array.<Grape2D.Scene>
-
Children of this scene.
Type:
- !Array.<Grape2D.Scene>
- Source:
Methods
-
addChild(child)
-
Adds a child scene.
Parameters:
Name Type Description child
Grape2D.Scene Child scene. - Source:
-
removeChild(child)
-
Removes a child scene.
Parameters:
Name Type Description child
Grape2D.Scene Child to remove. - Source:
-
render()
-
- Source:
-
update()
-
- Source: