Permalink
Browse files

center lasers

  • Loading branch information...
1 parent b3f09c0 commit a162d64d665bcd1fa0fdf61e400717c07215fcd1 @willmcneilly committed Mar 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/coffee/game.coffee
@@ -71,7 +71,7 @@ module.exports = class Game
spawnOneLaserBeam: ->
laser = @lasers.getFirstExists(false)
- laser.reset(@player.x, @player.y)
+ laser.reset(@player.x + (@player.width / 2 - 3), @player.y)
laser.body.velocity.y =- 500
spawnEnemy: ->

0 comments on commit a162d64

Please sign in to comment.