Updated every test to use the new GameObjectFactory syntax

This commit is contained in:
Richard Davey
2013-05-23 00:36:53 +01:00
parent bd54460e80
commit c5ace72180
156 changed files with 339 additions and 337 deletions
+4 -4
View File
@@ -21,18 +21,18 @@
function create() {
myGame.createSprite(0, 0, 'grid');
myGame.add.sprite(0, 0, 'grid');
melons = myGame.createGroup();
melons = myGame.add.group();
for (var i = 0; i < 100; i++)
{
var tempSprite = myGame.createSprite(Math.random() * myGame.world.width, Math.random() * myGame.world.height, 'melon');
var tempSprite = myGame.add.sprite(Math.random() * myGame.world.width, Math.random() * myGame.world.height, 'melon');
tempSprite.scrollFactor.setTo(1.2, 1.2);
melons.add(tempSprite);
}
car = myGame.createSprite(400, 300, 'car');
car = myGame.add.sprite(400, 300, 'car');
myGame.camera.follow(car);