Skip to content

Commit f8207d7

Browse files
committed
Remove variable sessionHighScore
1 parent 49f2317 commit f8207d7

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎js/snake.js‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ SNAKE.Snake = SNAKE.Snake || (function() {
127127
isPaused = false;
128128

129129
// ----- public variables -----
130-
me.sessionHighScore = 1;
131130
me.snakeBody = {};
132131
me.snakeBody["b0"] = new SnakeBlock(); // create snake head
133132
me.snakeBody["b0"].row = config.startRow || 1;
@@ -384,7 +383,6 @@ SNAKE.Snake = SNAKE.Snake || (function() {
384383
// ---------------------------------------------------------------------
385384
// Initialize
386385
// ---------------------------------------------------------------------
387-
388386
createBlocks(growthIncr*2);
389387
xPosShift[0] = 0;
390388
xPosShift[1] = playingBoard.getBlockWidth();
@@ -642,7 +640,9 @@ SNAKE.Board = SNAKE.Board || (function() {
642640
}
643641

644642
function createWelcomeElement() {
645-
var tmpElm = document.createElement("div");
643+
//document.getElementById('mode-dialog').innerHTML = 'Select which mode you would like to play in.<br /><button id="Easy">Easy</button><br /><button id="Medium">Medium</button><br /><button id="Difficult">Difficult</button>';
644+
645+
var tmpElm = document.createElement("div");
646646
tmpElm.id = "sbWelcome" + myId;
647647
tmpElm.className = "snake-welcome-dialog";
648648

@@ -653,8 +653,7 @@ SNAKE.Board = SNAKE.Board || (function() {
653653
}
654654
welcomeTxt.innerHTML = "JavaScript Snake<p></p>Use the <strong>arrow keys</strong> on your keyboard to play the game. " + fullScreenText + "<p></p>";
655655
var welcomeStart = document.createElement("button");
656-
welcomeStart.appendChild( document.createTextNode("Play Game"));
657-
656+
welcomeStart.appendChild(document.createTextNode("Play Game"));
658657
var loadGame = function() {
659658
SNAKE.removeEventListener(window, "keyup", kbShortcut, false);
660659
tmpElm.style.display = "none";

0 commit comments

Comments
 (0)