Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.02 KB

File metadata and controls

60 lines (47 loc) · 2.02 KB

🐍 Snake Game – Classic Arcade Game

A modern web-based implementation of the classic Snake Game, built using HTML5 Canvas, CSS, and JavaScript. The game features smooth animations, particle effects, responsive controls, and a neon retro interface inspired by vintage arcade and Nokia-style snake games.

🚀 Features

  • Interactive Gameplay – Control the snake using keyboard arrows, WASD keys, or mobile touch controls.
  • Dynamic Difficulty – Game speed increases as the score grows, making the gameplay progressively challenging.
  • Particle Effects – Visual particle explosions appear when apples are eaten and during game over events.
  • Score Tracking – Displays current score and stores the highest score using localStorage.
  • Pause and Resume – Pause gameplay anytime using the pause button or keyboard shortcut.
  • Responsive Design – Supports desktop and mobile devices with swipe controls and a mobile D-pad.
  • Retro Neon UI – Futuristic green neon interface inspired by classic arcade consoles.

📂 Project Structure

Snake_Game/
├── index.html

💡 Technologies Used

  • HTML5
  • CSS3
  • JavaScript

🛠️ How to Run

  1. Clone the repository:
git clone https://github.com/Agent-A345/Snake_Game.git

  1. Open the project and navigate to the file:
cd index.html

  1. Run the game in any modern browser

🎮 Game Controls

Desktop Controls

  • Arrow Keys – Move snake
  • W A S D – Alternative movement controls
  • P – Pause / Resume game

Mobile Controls

  • Swipe on the screen to change direction
  • Use the on-screen D-Pad buttons

📊 Game Mechanics

The system uses a grid-based movement system where:

  • The board is divided into 20×20 cells
  • Apples spawn randomly in empty grid cells
  • The snake grows when an apple is consumed
  • The difficulty level increases every few points

🔄 Future Enhancements

  • Multiple difficulty modes
  • Sound toggle option
  • Leaderboard system
  • Multiplayer snake mode This project is licensed under the MIT