Skip to content

Instantly share code, notes, and snippets.

@codetravis
Last active December 23, 2016 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codetravis/64a6499ec9972a3204e8c4f239279860 to your computer and use it in GitHub Desktop.
Save codetravis/64a6499ec9972a3204e8c4f239279860 to your computer and use it in GitHub Desktop.
8.19 Draw the score on the screen
' Game Class
Method OnRender()
engine.Clear(255, 255, 255)
engine.Render()
' Set the text color to black and draw the score on the screen
engine.SetColor(0, 0, 0)
engine.GetCanvas().DrawText("Player Score: " + Self.player.points_earned, engine.GetLocalX(10), engine.GetLocalY(10))
engine.SetColor(0, 70, 70)
engine.RenderFlush()
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment