Skip to content

Agent-A345/Snake_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ 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

About

A modern web-based implementation of the classic Snake Game, built using HTML5 Canvas, CSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages