This is a classic Snake Game implemented using HTML, CSS, and JavaScript. It's a fun and addictive game where the player controls a snake that grows longer as it eats food on the game board. The objective is to eat as much food as possible without colliding with the walls or the snake's own body.
- Responsive Design: The game is designed to work on various screen sizes, from desktop to mobile devices.
- Simple Controls: Use the arrow keys to control the direction of the snake (up, down, left, right).
- Score Tracking: The game keeps track of your score based on the number of food items eaten.
- Game Over: The game ends if the snake collides with the walls or itself. Your high score is saved.
- Smooth Animations: Enjoy smooth animations and transitions for a better gaming experience.
- Open the
index.htmlfile in your web browser. - Use the arrow keys on your keyboard to control the snake's direction.
- Move the snake to eat the food on the game board.
- The snake will grow longer with each food item eaten.
- Avoid colliding with the walls or the snake's body.
- Try to achieve the highest score possible!
A live demo of the Snake Game is available here.
To run the Snake Game locally, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/snake-game.git - Navigate to the project directory:
cd snake-game - Open the
index.htmlfile in your preferred web browser.
- HTML5
- CSS3
- JavaScript
- The Snake Game logic and design are inspired by various online tutorials and resources.
This project is licensed under the MIT License.
For any inquiries or suggestions, please contact dp0689@srmist.edu.in.
Feel free to contribute to the project by submitting pull requests or creating issues.
Have fun playing the Snake Game!
