Created
March 5, 2019 09:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
... | |
// 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