Snake Game

Score: 0

Snake Game: A Classic Arcade Experience


Game Objective:
  • Control the snake to collect food and grow longer.
  • Avoid colliding with the walls or yourself to stay in the game.
  • Score points by eating food and aim for the highest score possible!
Player Controls:
  • Use the arrow keys to navigate the snake:
    • Arrow Up: Move upward.
    • Arrow Down: Move downward.
    • Arrow Left: Move left.
    • Arrow Right: Move right.
Gameplay Mechanics:
  • Snake Movement: The snake moves in the chosen direction, and its speed determines how quickly it moves across the canvas.
  • Food Collection: The snake grows longer when it eats food, and the score increases by 10 points for each food item collected.
  • Game Over: The game ends if the snake collides with the walls or itself.
  • Difficulty: The snake's length increases as the score rises, making navigation more challenging.
Visual Feedback:
  • The snake is represented as a green rectangle moving across the grid-based canvas.
  • Food items are displayed as red squares scattered randomly on the board.
  • The score is displayed in real-time at the top of the game area.
Theme Customization:
  • Toggle between Light and Dark themes by clicking the Toggle Theme button.
  • The game visuals adapt seamlessly to the selected theme for an immersive experience.
Instructions:
  • Use the arrow keys to guide the snake towards the food.
  • Avoid hitting the walls or yourself to stay alive.
  • Click the Toggle Theme button to switch between themes.

Get ready for endless fun and challenge yourself to achieve the highest score in this timeless Snake Game! Good luck!