Skip to content

The game of Snake written in JavaScript.

License

Notifications You must be signed in to change notification settings

Wyss/SyntheSnake

 
 

Repository files navigation

SyntheSnake

A DNA Synthesis Simulator

Modified by David Kalish for the Wyss Institute.

Original README:

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.

For gamepad support, install AntiMicroX and run while playing game. For SNES style controller (iBuffalo Classic USB Gamepad, BSDP801), load config antimicrox_synthesnake_snes_config.gamecontroller.amgp

About

The game of Snake written in JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.6%
  • HTML 6.5%
  • CSS 5.9%