Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

JavaScript.Snake.Game.mp4

Javascript-Snake-Game

Interactive Snake game developed using JavaScript, featuring smooth keyboard controls, dynamic gameplay, and progressively increasing difficulty as the snake grows longer. Players use the arrow keys to guide the snake around the game board, collecting balls to increase both the snake’s size and the player’s score in real time. The game includes live score tracking, a persistent high-score system that stores and displays the highest score until it is beaten, responsive movement mechanics, and collision detection that ends the game when the snake hits itself or the boundaries. Inspired by the classic arcade experience, the project combines retro gameplay with modern JavaScript functionality to create an engaging and competitive browser-based game.

Features

✅ Smooth keyboard controls

✅ Real-time score tracking

✅ Persistent high-score system

✅ Increasing difficulty as the snake grows

✅ Collision detection

✅ Responsive browser-based gameplay

✅ Classic arcade-inspired design

Technologies Used

HTML5 CSS3 JavaScript

How to Start the Game

Option 1: Run Locally

  1. Clone the repository
  2. Navigate to the project folder: cd javascript-snake-game
  3. Open index.html in your browser, or use VS Code Live Server → Right Click → Open with Live Server

How to Play & Controls

Controls Guide

About

Interactive Snake game developed using JavaScript, featuring smooth keyboard controls, dynamic gameplay, and increasing difficulty as the snake grows. Players must guide the snake to collect balls, grow longer, and avoid collisions while aiming for the highest score possible in this classic arcade-inspired experience.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages