Skip to content

Instantly share code, notes, and snippets.

@bashbaugh
Last active February 27, 2019 02:29
Show Gist options
  • Save bashbaugh/2c4cd4de4490977eea2f011b9120ba8a to your computer and use it in GitHub Desktop.
Save bashbaugh/2c4cd4de4490977eea2f011b9120ba8a to your computer and use it in GitHub Desktop.
if (game_over)
{
canvas.fillStyle = text_color; // Set color
canvas.font = "45px Arial"; // Set font
canvas.fillText("Game Over", 80, 100); // Draw line one
canvas.fillText("Final Score: " + score.toString(), 60, 150); // Draw line two
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment