From a520f36309521eeaf16701ba84bfa86458676244 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 9 May 2014 17:45:43 +0100 Subject: [PATCH] Re-add bullet momentum from player movement. --- javascripts/game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/javascripts/game.js b/javascripts/game.js index 65d4371..c046f04 100644 --- a/javascripts/game.js +++ b/javascripts/game.js @@ -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; } }