mirror of
https://github.com/photonstorm/phaser
synced 2024-12-12 14:22:54 +00:00
19 lines
621 B
JavaScript
19 lines
621 B
JavaScript
|
/**
|
||
|
* @author Richard Davey <rich@photonstorm.com>
|
||
|
* @copyright 2016 Photon Storm Ltd.
|
||
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||
|
*/
|
||
|
|
||
|
Phaser.GameObject.Container.FACTORY_KEY = 'container';
|
||
|
|
||
|
Phaser.GameObject.Container.FACTORY_ADD = function (parent, x, y)
|
||
|
{
|
||
|
// return parent.children.add(new Phaser.GameObject.Container(this.game, parent, x, y));
|
||
|
return new Phaser.GameObject.Container(this.game, parent, x, y);
|
||
|
};
|
||
|
|
||
|
Phaser.GameObject.Container.FACTORY_MAKE = function (x, y)
|
||
|
{
|
||
|
return new Phaser.GameObject.Container(this.game, parent, x, y);
|
||
|
};
|