Skip to content

About

🐍 Snake on HTML5 Canvas: arrow keys/WASD or touch buttons, high score in localStorage.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Snake Game 🐍

The classic Snake on an HTML5 canvas: eat the food, grow, and avoid the walls and your own tail.

Live demo: https://mccprogrammer.github.io/simple-snake-game/

Snake Game screenshot

Features

  • Arrow keys or WASD, plus on-screen buttons on phones
  • Score and high score, the high score saved in localStorage
  • Responsive canvas

Run it locally

No build step: clone the repo and open index.html in a browser.

git clone https://github.com/MCCProgrammer/simple-snake-game.git
open simple-snake-game/index.html

Built with

HTML5 Canvas, CSS and plain JavaScript.


One of my first web projects. More of my work at mccprogrammer.com/projects.

About

🐍 Snake on HTML5 Canvas: arrow keys/WASD or touch buttons, high score in localStorage.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages