Skip to content

Commit dc26ca0

Browse files
committed
Added readme file
1 parent 9301e29 commit dc26ca0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
JavaScript Snake
2+
By Patrick Gillespie
3+
License: MIT
4+
http://patorjk.com/games/snake
5+
6+
This is a DOM-based game of Snake that I wrote in JavaScript a few years back.
7+
8+
Other than the full screen mode demonstrated in the code, it can also be
9+
initialized in div tags within a page. Example:
10+
11+
var mySnakeBoard = new SNAKE.Board( {
12+
boardContainer: "game-area",
13+
fullScreen: false,
14+
width: 580,
15+
height:400
16+
});
17+
18+
The comments are formatted a little strange because at the time I was playing
19+
around with YUI Doc.

0 commit comments

Comments
 (0)