Created
March 5, 2019 09:29
-
-
Save EliteIntegrity/1e0951f2e1366fbcab714e4c3ef1dd2e to your computer and use it in GitHub Desktop.
Here we add the code to draw the player's ship on each frame of animation inside the draw function
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
... | |
... | |
// Choose the brush color for drawing | |
paint.color = Color.argb(255, 0, 255, 0) | |
// Draw all the game objects here | |
// Now draw the player spaceship | |
canvas.drawBitmap(playerShip.bitmap, playerShip.position.left, | |
playerShip.position.top | |
, paint) | |
// Draw the score and remaining lives | |
... | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment