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

Commit

Permalink
Keep paddles visible during Game Over
Browse files Browse the repository at this point in the history
Closes #7.
  • Loading branch information
Leon Byford committed Mar 30, 2015
1 parent 315370c commit e62e828
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,8 @@ function title() {
function gameOver() {
flgGameOver = true;
$("canvas").css("cursor", "pointer");
ctx.fillStyle = "#000";
ctx.fillRect(0, 0, 640, 480);
ctx.fillStyle = "#fff";
ctx.font = "32px Verdana";
ctx.textAlign = "left";
ctx.fillText("Score: " + score, 0, 32);
ctx.textAlign = "right";
ctx.fillText("Top: " + topScore, 640, 32);
ctx.textAlign = "center";
ctx.fillText("Game Over", 640/2, 96);
ctx.fillText("Click to try again", 640/2, 160);
Expand Down

0 comments on commit e62e828

Please # to comment.