Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 994 Bytes

README.MD

File metadata and controls

22 lines (15 loc) · 994 Bytes

Classic Snake Game

This is a classic Snake game implemented using HTML, CSS, and JavaScript. The majority of the game logic is contained within the JavaScript file.

Overview

The game leverages requestAnimationFrame to run the game engine loop. This method produces higher quality animation by eliminating flicker and shear that can occur when using setTimeout or setInterval. More on this: Check StackOverFlow

How to Play

  1. Clone or download the repository to your local machine.
  2. Open index.html in a web browser to start playing the game.
  3. Use arrow keys or swipe gestures to control the snake.
  4. Eat food items to grow the snake and earn points.
  5. Avoid collisions with walls and the snake's own tail.
  6. Try to achieve the highest score possible!

"Keep calm and hiss on!"

Remember, even the longest snake started as a tiny worm!