Created
March 5, 2019 09:26
-
-
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
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
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