From 2742f0e4574fabfdd780ec38b8a7a0be944837e7 Mon Sep 17 00:00:00 2001 From: Leon Byford Date: Mon, 30 Mar 2015 20:43:47 +0100 Subject: [PATCH] Improve aesthetics of Game Over screen Closes #9 --- script.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 71ee0c5..d0da8b5 100644 --- a/script.js +++ b/script.js @@ -173,10 +173,11 @@ function gameOver() { flgGameOver = true; $("canvas").css("cursor", "pointer"); ctx.fillStyle = "#fff"; - ctx.font = "32px Verdana"; ctx.textAlign = "center"; - ctx.fillText("Game Over", 640/2, 96); - ctx.fillText("Click to try again", 640/2, 160); + ctx.font = "32px Verdana"; + ctx.fillText("Game Over", 640/2, 240); + ctx.font = "16px Verdana"; + ctx.fillText("Click to try again", 640/2, 272); if (score == topScore) { docCookies.setItem("topScore", score, Infinity);