Class: Scene
Extends
Implements
Constructors
new Scene()
new Scene(
options
):Scene
Top-level node that holds all other nodes, such as sprites, rectangles, or labels, that will be displayed on the screen
Parameters
• options: SceneOptions
= {}
Returns
Remarks
The scene is the game screen or stage, and fills the entire available screen. There are usually multiple screens to contain multiple stages of the game, such as various instruction pages or phases of a game.
Overrides
Defined in
m2c2kit/packages/core/src/Scene.ts:39
Properties
_active
_active:
boolean
=false
Defined in
m2c2kit/packages/core/src/Scene.ts:28
_alpha
_alpha:
number
=1.0
Inherited from
Defined in
m2c2kit/packages/core/src/M2Node.ts:99
_draggable
protected
_draggable:boolean
=false
Inherited from
Defined in
m2c2kit/packages/core/src/M2Node.ts:102
_game?
optional
_game:Game
Inherited from
Defined in
m2c2kit/packages/core/src/M2Node.ts:106
_hidden
protected
_hidden:boolean
=false
Inherited from
Defined in
m2c2kit/packages/core/src/M2Node.ts:103
_isUserInteractionEnabled
protected
_isUserInteractionEnabled:boolean
=false