new Group()
Phaser Group extensions
Methods
-
$$centered( [anchor])
-
A shortcut placing a graphics in the center of the screen
Parameters:
Name Type Argument Default Description anchorPhaser.Point <optional>
new Phaser.Point(0.5, 0.5) the anchor point
-
$$moveTo(destination [, anchor])
-
Moves the current object in the coordinates of another, considering groups/scaling
Parameters:
Name Type Argument Default Description destinationPhaser.Sprite | Phaser.Group a destination object
anchorPhaser.Point <optional>
new Phaser.Point(0.5, 0.5) the anchor point
-
$$pointIn(ancestor [, anchor])
-
A shortcut placing a text in the center of the screen
Parameters:
Name Type Argument Default Description ancestorPhaser.Sprite | Phaser.Group an ancestor of this object
anchorPhaser.Point <optional>
new Phaser.Point(0.5, 0.5) the anchor point
-
$$tween(properties, duration [, options])
-
A shortcut for tween creation in groups
Parameters:
Name Type Argument Default Description propertiesObject properties to tween
durationNumber tween duration
optionsObject <optional>
{} Tween options
Properties
Name Type Argument Default Description easeObject <optional>
Phaser.Easing.Default Default Ease function
autostartObject <optional>
false delayObject <optional>
0 repeatObject <optional>
0 yoyoObject <optional>
false