Skip to content

Instantly share code, notes, and snippets.

@EliteIntegrity
Created March 5, 2019 09:26
Show Gist options
  • Save EliteIntegrity/1aae305ccea9d0a5dd9e78a07eb45def to your computer and use it in GitHub Desktop.
Save EliteIntegrity/1aae305ccea9d0a5dd9e78a07eb45def to your computer and use it in GitHub Desktop.
Update the player's ship each frame by calling its update function from the update function of KotlinInvadersView
private fun update(fps: Long) {
// Update the state of all the game objects
// Move the player's ship
playerShip.update(fps)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment