VladislavDegtyarenko / snake-game-js

Classic Snake Game developed on Vanilla JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

Classic Snake Game developed from scratch on Vanilla JS (Javascript without frameworks)

Features

  • lightweight code (65.5KB)
  • cross-browser compatible
  • mobile ready
  • gaming with sound effects
  • best score is saved on localStorage

How to play?

  1. Open the game
  2. Choose the difficulty level
  3. Use arrows or WSAD to control the snake
  4. Pause the game using SPACE button if you need

How to run it on your local machine?

  1. Download the repository
  2. Go to the repo directory
  3. Open command line / terminal here
  4. Run npm i
  5. 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! :)

About

Classic Snake Game developed on Vanilla JS


Languages

Language:JavaScript 72.5%Language:CSS 25.9%Language:HTML 1.6%