Added back the call to the board initialization so the game is playable.
This commit is contained in:
parent
ca14fd3f9e
commit
4a1ea4048c
@ -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() { };
|
||||
|
||||
|
@ -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><!--
|
||||
@ -58,6 +58,7 @@
|
||||
|
||||
--><section id=score>
|
||||
<h4>Score</h4>
|
||||
<span class=value>0</span>
|
||||
</section>
|
||||
</div>
|
||||
<div class=debug-aspect>
|
||||
|
Loading…
x
Reference in New Issue
Block a user