Name | Modified | Size | Downloads / Week |
---|---|---|---|
snakeblock.png | 2017-12-13 | 18.3 kB | |
Thumbs.db | 2017-12-13 | 3.6 kB | |
dead-dark-snakeblock.png | 2017-12-13 | 18.4 kB | |
deadblock.png | 2017-12-13 | 18.5 kB | |
deadblock_border.png | 2017-12-13 | 117 Bytes | |
dark-snakeblock.png | 2017-12-13 | 17.9 kB | |
snake.js | 2017-12-13 | 40.0 kB | |
dark-snake.css | 2017-12-13 | 2.8 kB | |
main-snake.css | 2017-12-13 | 2.6 kB | |
index.html | 2017-12-13 | 2.1 kB | |
JavaScript-Snake-master.zip | 2017-12-13 | 17.6 kB | |
LICENSE | 2017-12-13 | 1.1 kB | |
README.md | 2017-12-13 | 770 Bytes | |
Totals: 13 Items | 143.7 kB | 0 |
JavaScript Snake
By Patrick Gillespie
License: MIT
http://patorjk.com/games/snake
This is a DOM-based game of Snake that I wrote in JavaScript a few years back.
Other than the full screen mode demonstrated in the code, it can also be initialized in div tags within a page. Example:
var mySnakeBoard = new SNAKE.Board( {
boardContainer: "game-area",
fullScreen: false,
width: 580,
height:400
});
The comments are formatted a little strange because at the time I was playing around with YUI Doc.