Skip to content

Divyanshu-DXS/Snake-Classic-1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published