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

Commit

Permalink
Hide cursor during gameplay
Browse files Browse the repository at this point in the history
Closes #14.
  • Loading branch information
Leon Byford committed Mar 30, 2015
1 parent f9fda6f commit 315370c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function initVars() {
ballLeft = true;
ballSpeed = 3;
flgGameOver = false;
$("canvas").css("cursor", "none");
}

function drawPad(right, y) {
Expand Down Expand Up @@ -147,11 +148,13 @@ function title() {

initVars();
flgGameOver = true;
$("canvas").css("cursor", "pointer");
}


function gameOver() {
flgGameOver = true;
$("canvas").css("cursor", "pointer");
ctx.fillStyle = "#000";
ctx.fillRect(0, 0, 640, 480);
ctx.fillStyle = "#fff";
Expand Down

0 comments on commit 315370c

Please # to comment.