Skip to content
a light weight snake using jQuery and css
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
html
js
README.md
iGdvcB1432765643.jpg
index.html
index.php

README.md

jsSnake

A light weight web game using HTML JQuery and CSS.

How to play: Snake starts automatically and can move pretty fast, change direction with the arrow keys. Simply avoid hitting yourself, there are no walls holding you back.

Further Description: The "board" is a simple unordered list with 256 line elements that are floated left with a 1px border.

Snake is written fully in JS on a single dimentional array. It is rendered on screen by adding and removing classes from select line elements. The snake's tongue and eyes are ':before' and ':after' pseudo elements that are rotated and moved with relative position. The tongue is a simple 'Y' and the eyes are a colon with a white text-shadow;

Snake moves forward ever 80ms.

You can’t perform that action at this time.