A browser‑based classic Snake game built as a learning project.
Implements the iconic “Snake” gameplay in a web environment: you control a moving snake that grows by eating items and must avoid colliding with itself or the walls. This project was created for practice and demonstration of core web game development concepts.
- Arrow‑key (and/or WASD) control of the snake movement
- Grid‑based game field with collectible food items
- Growth of the snake when food is eaten
- Game over condition when the snake collides with itself or the boundary
- Score tracking with display of current score
- Responsive canvas resizing or basic adaptation to browser window (if included)
- HTML5 (Canvas)
- CSS3
- JavaScript (ES6+)
- No external game engine — built from scratch for learning purposes
This is a practice/demo/learning project.
The project was created to practise and demonstrate game‑loop architecture, canvas rendering, event handling, collision logic, and responsive UI basics.
No further updates or maintenance are planned — the code is retained here as a finished, archival work for portfolio presentation.
- Clone the repository:
git clone https://github.com/YourUsername/SnakeGame‑Web.git cd SnakeGame‑Web