new GameObjectFactory(game)
The GameObjectFactory is a quick way to create many common game objects
using
.game.add
Created objects are automatically added to the appropriate Manager, World, or manually specified parent Group.
Parameters
Name | Type | Description |
---|---|---|
game | Phaser.Game | A reference to the currently running game. |
- Source code: gameobjects/GameObjectFactory.js (Line 17)
Please login to continue.