GameObjectCreator#spriteBatch()

spriteBatch(parent, name, addToStage) → {Phaser.SpriteBatch}

Create a new SpriteBatch.

Parameters
Name Type Argument Default Description
parent any

The parent Group or DisplayObjectContainer that will hold this group, if any.

name string <optional>
'group'

A name for this Group. Not used internally but useful for debugging.

addToStage boolean <optional>
false

If set to true this Group will be added directly to the Game.Stage instead of Game.World.

Returns

The newly created group.

Source code: gameobjects/GameObjectCreator.js (Line 100)
doc_phaser
2017-02-14 10:48:34
Comments
Leave a Comment

Please login to continue.