Loads of new examples, some more bug fixes, all of them work beautifully

This commit is contained in:
Webeled
2013-10-14 19:32:07 +01:00
parent faf432bdb0
commit 969fa46484
24 changed files with 400 additions and 38 deletions
+5 -5
View File
@@ -65,16 +65,16 @@
function update() {
player.velocity.x = 0;
player.velocity.y = 0;
player.body.velocity.x = 0;
player.body.velocity.y = 0;
if (game.input.keyboard.isDown(Phaser.Keyboard.LEFT))
{
player.velocity.x = -200;
player.body.velocity.x = -200;
}
else if (game.input.keyboard.isDown(Phaser.Keyboard.RIGHT))
{
player.velocity.x = 200;
player.body.velocity.x = 200;
}
if (game.input.keyboard.isDown(Phaser.Keyboard.SPACEBAR))
@@ -95,7 +95,7 @@
if (bullet)
{
bullet.reset(player.x, player.y - 8);
bullet.velocity.y = -300;
bullet.body.velocity.y = -300;
bulletTime = game.time.now + 250;
}
}