Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: willmcneilly/space-shooter-phaser
base: b23924f972
...
head fork: willmcneilly/space-shooter-phaser
compare: 5758a962dc
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 5 deletions.
  1. +4 −5 scripts/coffee/game.coffee
View
9 scripts/coffee/game.coffee
@@ -71,7 +71,7 @@ module.exports = class Game
createLasers: ->
@lasers = @game.add.group()
- @lasers.createMultiple(25, 'laser')
+ @lasers.createMultiple(40, 'laser')
@lasers.setAll('outOfBoundsKill', true)
createEnemies: ->
@@ -147,9 +147,9 @@ module.exports = class Game
enemy = @enemies.getFirstExists(false)
enemy.reset(@game.rnd.realInRange(enemy.width, @game.world.width - enemy.width), -enemy.width)
enemy.body.velocity.y =+ @enemyVelocity
- tween = @game.add.tween(enemy.scale)
- tween
- .to({ x: 0.3, y: 0.3 }, 500, Phaser.Easing.Bounce.IN, true, 90, true, true)
+ # tween = @game.add.tween(enemy.scale)
+ # tween
+ # .to({ x: 0.3, y: 0.3 }, 500, Phaser.Easing.Bounce.IN, true, 90, true, true)
playerHit: (player, enemy) ->
enemy.kill()
@@ -185,7 +185,6 @@ module.exports = class Game
powerUpHit: (laser, powerUp) ->
laser.kill()
powerUp.kill()
- @score =- 10
powerUpPlayer: (player, powerUp)->
powerUp.kill()

No commit comments for this range

Something went wrong with that request. Please try again.