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.
- 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.
Snake_Game/
โโโ index.html
- HTML5
- CSS3
- JavaScript
- Clone the repository:
git clone https://github.com/Agent-A345/Snake_Game.git
- Open the project and navigate to the file:
cd index.html
- Run the game in any modern browser
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
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
- Multiple difficulty modes
- Sound toggle option
- Leaderboard system
- Multiplayer snake mode This project is licensed under the MIT