Skip to content

Instantly share code, notes, and snippets.

@EliteIntegrity
Created March 5, 2019 09:29
Show Gist options
  • Save EliteIntegrity/1e0951f2e1366fbcab714e4c3ef1dd2e to your computer and use it in GitHub Desktop.
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
...
...
// 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