Skip to content

AMRITO-KUNDU/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple Snake game built with HTML Canvas and vanilla JavaScript.

Run locally

  • Open index.html in a browser, or
  • Use a local server (recommended for consistent asset loading). For example, VS Code “Live Server”.

Controls

  • Desktop: Arrow keys to move.
  • Mobile / Touch: Swipe on the game area (canvas) to change direction.
  • Start / Restart: Click the game area when prompted.

Files

  • index.html — page + canvas
  • src/styles.css — basic styling
  • src/snakeGame.js — game logic and input handling
  • assets/audio/* — audio assets

About

A simple Snake game built with HTML Canvas and vanilla JavaScript.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors