This is a simple Snake game built using HTML, CSS, and JavaScript.
You can play the game directly in your browser by visiting: https://imabusayed.github.io/SnakeGame/
- Classic Snake Gameplay: The player controls a snake that grows longer by eating apples. The game ends if the snake collides with itself or the boundaries of the game area.
- Score Tracking: The game keeps track of the player's score based on the number of apples eaten.
- Start/Pause: The game provides buttons to start a new game and pause the current game.
- Start Game: Click the "Start" button to begin.
- Control the Snake: Use the arrow keys (Up, Down, Left, Right) to move the snake.
- Eat Apples: Guide the snake to eat the red apples that appear on the game screen.
- Avoid Collision: The snake will die if it hits itself or the edges of the game area.
- HTML (index.html): Defines the game canvas, score display, and buttons.
- CSS (style.css): Styles the game elements for visual appearance.
- JavaScript (script.js): Contains the game logic, including snake movement, collision detection, apple generation, and score tracking.
Feel free to fork this repository and contribute to the project! Any improvements, bug fixes, or new features are welcome.
I'm Abu Sayed, the developer of this game. I am passionate about web development and love creating fun and engaging projects.
Let me know if you have any questions or feedback!