1
0
mirror of https://github.com/danbee/invaders synced 2025-03-04 08:39:08 +00:00

Re-add bullet momentum from player movement.

This commit is contained in:
Dan Barber 2014-05-09 17:45:43 +01:00
parent 29b0ce93c4
commit a520f36309

View File

@ -83,6 +83,7 @@ function fireBullet () {
// And fire it
bullet.reset(player.x, player.y + 8);
bullet.body.velocity.y = -400;
bullet.body.velocity.x = player.body.velocity.x / 4
bulletTime = game.time.now + 500;
}
}