GameObjectFactory#GameObjectFactory

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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.