Skip to content
/ Snake Public

A classic Snake game built with vanilla JavaScript and HTML5 Canvas. Features smooth movement, collision detection, and a responsive design — all in a single lightweight project. Great for learning game loops, keyboard controls, and canvas rendering.

Notifications You must be signed in to change notification settings

Aztaban/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple classic Snake game built with HTML, CSS, and JavaScript.

Features:

  • Mobile-friendly controls
  • Persistent high score leaderboard (with Vercel serverless functions)
  • Simple and clean design

To Run

This project uses Vercel serverless functions for the leaderboard.

To run properly:

  1. Deploy to Vercel (vercel deploy)
  2. Or serve locally with a static server and API support

Opening index.html directly won't enable high score saving.

About

A classic Snake game built with vanilla JavaScript and HTML5 Canvas. Features smooth movement, collision detection, and a responsive design — all in a single lightweight project. Great for learning game loops, keyboard controls, and canvas rendering.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published