Group

Class: Phaser.Group

Constructor

new Group(game, parent, name, addToStage, enableBody, physicsBodyType)

A Group is a container for display objects including Sprites and Images.

Groups form the logical tree structure of the display/scene graph where local transformations are applied to children.
For instance, all children are also moved/rotated/scaled when the group is moved/rotated/scaled.

In addition, Groups provides support for fast pooling and object recycling.

Groups are also display objects and can be nested as children within other Groups.

Parameters
登录查看完整内容