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
+1 -1
View File
@@ -14,7 +14,7 @@
function create() {
myGame.world.setSize(2000, 2000);
for(var i = 0; i < 1000; i++) {
myGame.createSprite(myGame.world.randomX, myGame.world.randomY, 'melon');
myGame.add.sprite(myGame.world.randomX, myGame.world.randomY, 'melon');
}
}
function update() {
+1 -1
View File
@@ -26,7 +26,7 @@
for (var i = 0; i < 1000; i++)
{
myGame.createSprite(myGame.world.randomX, myGame.world.randomY, 'melon');
myGame.add.sprite(myGame.world.randomX, myGame.world.randomY, 'melon');
}
}
+1 -1
View File
@@ -12,7 +12,7 @@
}
var balls;
function create() {
balls = myGame.createGroup();
balls = myGame.add.group();
myGame.input.onTap.add(tapped, this);
}
function tapped(pointer, doubleTap) {
+1 -1
View File
@@ -21,7 +21,7 @@
function create() {
balls = myGame.createGroup();
balls = myGame.add.group();
myGame.input.onTap.add(tapped, this);