A simple Snake Game built with React. The game allows the player to control a snake to eat food, grow in size, and avoid collisions with the walls or itself. The objective is to achieve the highest score possible by eating as much food as possible without dying.
- Playable Snake Game with arrow keys for movement (or W, A, S, D)
- Increasing difficulty as the snake grows
- Keeps track of the player's score
- Responsive and mobile-friendly
- Different screens: Start Game, Gameplay, and Game Over
- Use the arrow keys or W, A, S, D to control the snake.
- The snake grows longer each time it eats food (represented as a small square).
- The game ends when the snake collides with the walls or itself.
- The score increases with each piece of food consumed.
- React: JavaScript library for building the user interface.
- CSS: For styling the game board and elements.
- JavaScript: For game logic and handling the snake's movement and collisions.
This is the screen that shows when you first open the game. Click to start.
This is the main gameplay screen where you control the snake.
The game over screen after the player dies (first instance).
Another variation of the death screen, showing the final score.