Skip to content

Commit d137d3e

Browse files
committed
Swapped over to using the new Factory.
1 parent 380e717 commit d137d3e

3 files changed

Lines changed: 6 additions & 604 deletions

File tree

build/config.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,8 @@
171171
<script src="$path/src/gameobjects/components/ScaleMinMax.js"></script>
172172
<script src="$path/src/gameobjects/components/Smoothed.js"></script>
173173
174-
<script src="$path/src/gameobjects/GameObjectFactory.js"></script>
175-
<script src="$path/src/gameobjects/GameObjectCreator.js"></script>
176-
177174
<script src="$path/src/gameobjects/Factory.js"></script>
175+
<script src="$path/src/gameobjects/GameObjectCreator.js"></script>
178176
179177
<script src="$path/src/gameobjects/stage/Stage.js"></script>
180178
<script src="$path/src/gameobjects/stage/StageCanvasRenderer.js"></script>

src/core/Game.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,10 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
212212
this.raf = null;
213213

214214
/**
215-
* @property {Phaser.GameObjectFactory} add - Reference to the Phaser.GameObjectFactory.
215+
* @property {Phaser.GameObjects.Factory} add - Reference to the Phaser GameObject Factory.
216216
*/
217217
this.add = null;
218218

219-
// TODO: Testing new Game Objects Factory
220-
this.factory = null;
221-
222219
/**
223220
* @property {Phaser.GameObjectCreator} make - Reference to the GameObject Creator.
224221
*/
@@ -616,7 +613,10 @@ Phaser.Game.prototype = {
616613
this.setUpRenderer();
617614

618615
this.world = new Phaser.World(this);
619-
this.add = new Phaser.GameObjectFactory(this);
616+
617+
this.add = new Phaser.GameObjects.Factory(this);
618+
this.add.boot();
619+
620620
this.make = new Phaser.GameObjectCreator(this);
621621
this.cache = new Phaser.Cache(this);
622622
this.load = new Phaser.Loader(this);
@@ -638,10 +638,6 @@ Phaser.Game.prototype = {
638638
this.sound.boot();
639639
this.state.boot();
640640

641-
this.factory = new Phaser.GameObjects.Factory(this);
642-
643-
this.factory.boot();
644-
645641
if (this.config['enableDebug'])
646642
{
647643
this.debug = new Phaser.Utils.Debug(this);

0 commit comments

Comments
 (0)