A snake game written in CoffeeScript.
-
Clone this repo or download
lib/snake.js
. -
Added
images/qrcode.png
the same directory as the page you will load the game, this will be shown after playing (better way needed). -
Simply added following lines to where you want to place the game, change
src
to where you place snake.js.
<div id="snakeGame" class="snakeGame">
<script type="text/javascript" src="path/to/snake.js"></script>
</div>