Skip to content

Latest commit

 

History

History
executable file
·
25 lines (18 loc) · 846 Bytes

README.md

File metadata and controls

executable file
·
25 lines (18 loc) · 846 Bytes

🐛 Snake Game 🐛

JavaScript Snake Game By Patrick Gillespie

This is a DOM-based game of Snake that I wrote in JavaScript a few years back.

▶ Play Game ▶

http://patorjk.com/games/snake

📋 Note 📋

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.

License: MIT

LICENSE