Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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