Skip to content
This repository has been archived by the owner on Apr 29, 2018. It is now read-only.

Commit

Permalink
Improve aesthetics of Game Over screen
Browse files Browse the repository at this point in the history
Closes #9
  • Loading branch information
Leon Byford committed Mar 30, 2015
1 parent 1b263c2 commit 2742f0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2742f0e

Please # to comment.