Last active
December 23, 2016 22:35
-
-
Save codetravis/64a6499ec9972a3204e8c4f239279860 to your computer and use it in GitHub Desktop.
8.19 Draw the score on the screen
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
' 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