Skip to content

Instantly share code, notes, and snippets.

@EliteIntegrity
Created March 5, 2019 09:21
Show Gist options
  • Save EliteIntegrity/49a884cfcb7353ed7e658cd5ccd9caa3 to your computer and use it in GitHub Desktop.
Save EliteIntegrity/49a884cfcb7353ed7e658cd5ccd9caa3 to your computer and use it in GitHub Desktop.
Adding a new property to the KotlinInvaersView class shown with some context to make it clear where it goes
...
...
// A Canvas and a Paint object
private var canvas: Canvas = Canvas()
private val paint: Paint = Paint()
// The players ship
private var playerShip: PlayerShip = PlayerShip(context, size.x, size.y)
// The score
private var score = 0
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment