Skip to content

Instantly share code, notes, and snippets.

@EliteIntegrity
Created March 5, 2019 09:40
Show Gist options
  • Save EliteIntegrity/0ec115a983f3be0ed85c5abcd7c4687b to your computer and use it in GitHub Desktop.
Save EliteIntegrity/0ec115a983f3be0ed85c5abcd7c4687b to your computer and use it in GitHub Desktop.
Add two properties to KotlinInvadersView to represent and control the numbers of the invaders
...
...
// The players ship
private var playerShip: PlayerShip = PlayerShip(context, size.x, size.y)
// Some Invaders
private val invaders = ArrayList<Invader>()
private var numInvaders = 0
// The score
private var score = 0
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment