Skip to content

martme/css-snake

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simple game of Snake in CSS

The snake is represented as an ordered collection of list items, decorated with html-attributes - the html-attributes are recognized by the stylesheet which uses animations to make the snake move.

< 100 lines of spaghetti javascript makes sure the attributes are updated to the correct values after each animation iteration.

Why? Because inspecting the DOM while playing is mesmerizing!

Example gameplay

About

Snake Game implemented mostly using CSS animations and abusing the DOM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published