Updating and fixing tests

This commit is contained in:
Richard Davey committed 2013-08-02 18:32:26 +01:00
1 parent 4c9c50584e
commit 982faeedb8
88 files changed
+571 -1722

No files matched your search

+6 -2
View File
@@ -62,7 +62,7 @@
speed = 0;
}
}
shipMotion = game.motion.velocityFromAngle(ship.rotation, speed);
//shipMotion = game.motion.velocityFromAngle(ship.rotation, speed);
scroller.setSpeed(shipMotion.x, shipMotion.y);
// emit particles
if(speed > 2) {
@@ -89,7 +89,11 @@
var b = bullets.getFirstAvailable();
b.x = ship.x;
b.y = ship.y - 26;
var bulletMotion = game.motion.velocityFromAngle(ship.rotation, 400);
//var bulletMotion = game.motion.velocityFromAngle(ship.rotation, 400);
var bulletMotion = {
x: 0,
y: 0
};
b.revive();
b.rotation = ship.rotation;
b.body.velocity.setTo(bulletMotion.x, bulletMotion.y);
+3 -2
View File
@@ -99,7 +99,7 @@
}
}
shipMotion = game.motion.velocityFromAngle(ship.rotation, speed);
//shipMotion = game.motion.velocityFromAngle(ship.rotation, speed);
scroller.setSpeed(shipMotion.x, shipMotion.y);
@@ -144,7 +144,8 @@
b.x = ship.x;
b.y = ship.y - 26;
var bulletMotion = game.motion.velocityFromAngle(ship.rotation, 400);
//var bulletMotion = game.motion.velocityFromAngle(ship.rotation, 400);
var bulletMotion = {x:0,y:0};
b.revive();
b.rotation = ship.rotation;