         dy = if @controls.down.isDown then dy + 1 else dy
         dy = if @controls.up.isDown then dy - 1 else dy
 
+        # adjust acceleration if controls used
         if dx == -1
             @sprite.body.acceleration.x = if @sprite.body.velocity.x > 0 then -600 else -300
         if dx == 1

        @gun = game.add.audio "gunshot"
	
    update: ->
        @sprite.body.acceleration.x = 0
        @sprite.body.acceleration.y = 0

        dx = 0
        dx = if @controls.left.isDown then dx - 1 else dx
        dx = if @controls.right.isDown then dx + 1 else dx

        @controls = game.input.keyboard.createCursorKeys()
        @sprite = game.add.sprite @x, @y, "player"
        game.physics.arcade.enable(@sprite)
        # @sprite.body.collideWorldBounds = true
        @sprite.anchor.x = .5
        @sprite.anchor.y = .75
        @i = 0
