Added back the call to the board initialization so the game is playable.

This commit is contained in:
Jonathan Bernard 2015-11-01 23:53:37 -06:00
parent ca14fd3f9e
commit 4a1ea4048c
2 changed files with 12 additions and 5 deletions

View File

@ -54,8 +54,14 @@ var loadLevel = function(levelSetName, levelNum) {
var levelData = SnakeLevels[levelSetName].levels[parseInt(levelNum)];
// Show start overlay UI
}
// TODO: create some way to select the difficulty (defaults to easy).
// TODO: Show start overlay UI
// Initialize the board using the level data.
Snake.initialize(levelData);
};
var nextLevel = function() { };

View File

@ -31,9 +31,9 @@
<h4>Controls</h4>
<ul><li><img src="arrow.svg" class="arrow up">
<img src="arrow.svg" class="arrow down">
<img src="arrow.svg" class="arrow left">
<img src="arrow.svg" class="arrow left">;
<img src="arrow.svg" class="arrow right">: Move </li>
<li>ENTER: (Re)start.</li>
<li>SPACE: (Re)start.</li>
<li>PAUSE: (Un)Pause</li>
</ul>
</section><!--
@ -57,7 +57,8 @@
</section><!--
--><section id=score>
<h4>Score</h4>
<h4>Score</h4>
<span class=value>0</span>
</section>
</div>
<div class=debug-aspect>