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)];
|
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() { };
|
var nextLevel = function() { };
|
||||||
|
|
||||||
|
@ -31,9 +31,9 @@
|
|||||||
<h4>Controls</h4>
|
<h4>Controls</h4>
|
||||||
<ul><li><img src="arrow.svg" class="arrow up">
|
<ul><li><img src="arrow.svg" class="arrow up">
|
||||||
<img src="arrow.svg" class="arrow down">
|
<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>
|
<img src="arrow.svg" class="arrow right">: Move </li>
|
||||||
<li>ENTER: (Re)start.</li>
|
<li>SPACE: (Re)start.</li>
|
||||||
<li>PAUSE: (Un)Pause</li>
|
<li>PAUSE: (Un)Pause</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section><!--
|
</section><!--
|
||||||
@ -57,7 +57,8 @@
|
|||||||
</section><!--
|
</section><!--
|
||||||
|
|
||||||
--><section id=score>
|
--><section id=score>
|
||||||
<h4>Score</h4>
|
<h4>Score</h4>
|
||||||
|
<span class=value>0</span>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class=debug-aspect>
|
<div class=debug-aspect>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user