Classic Snake Game developed from scratch on Vanilla JS (Javascript without frameworks)
- lightweight code (65.5KB)
- cross-browser compatible
- mobile ready
- gaming with sound effects
- best score is saved on localStorage
- Open the game
- Choose the difficulty level
- Use
arrows
orWSAD
to control the snake - Pause the game using
SPACE
button if you need
- Download the repository
- Go to the repo directory
- Open command line / terminal here
- Run
npm i
- Start the development server
- dev server
npm run dev
- build for production
npm run build
- preview the production build
npm run preview
The project is developed/bundled using Vite
Created by Vladislav Degtyarenko
Have fun! :)