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:
parent
29b0ce93c4
commit
a520f36309
@ -83,6 +83,7 @@ function fireBullet () {
|
|||||||
// And fire it
|
// And fire it
|
||||||
bullet.reset(player.x, player.y + 8);
|
bullet.reset(player.x, player.y + 8);
|
||||||
bullet.body.velocity.y = -400;
|
bullet.body.velocity.y = -400;
|
||||||
|
bullet.body.velocity.x = player.body.velocity.x / 4
|
||||||
bulletTime = game.time.now + 500;
|
bulletTime = game.time.now + 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user