Added persistence of game state to localstorage after each move

Added rebuilding of game state from localstoage on page load
Added New Game button to allow game restarts now that refreshes resume the game
This commit is contained in:
Mark Frederiksen
2014-03-18 14:48:55 -04:00
parent 01264c3252
commit 02a24c0610
8 changed files with 125 additions and 28 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
</div>
</div>
<p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p>
<a class="restart-button">New Game</a>
<div class="game-container">
<div class="game-message">
<p></p>