Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.18 KB

readme.md

File metadata and controls

37 lines (25 loc) · 1.18 KB

Snake Game

A Snake Game build using HTML,CSS & Javascript.

About

This is a simple Snake Game implemented using HTML, CSS, and JavaScript. It's a classic game where the player controls a snake that moves around the screen, eating food to grow longer while avoiding collisions with itself and the walls.

How to Play

  • Use the arrow keys (Up, Down, Left, Right) to control the direction of the snake.
  • The snake will move continuously in the direction it is facing.
  • Eat the food (represented by red squares) to grow longer.
  • Avoid running into the walls or the snake's own body, as this will end the game.
  • The game speed increases as the snake grows longer, making it more challenging.

Extra Featues

  • Update High Score and Store in Local Storage.
  • Increase Speed of the Snake everytime its eats a food.
  • Can't move in the opposite direction in which the snake moving etc...

Screenshots

ScreenShot

Prerequisites

  • HTML: For structuring the game layout.
  • CSS: For styling the game elements and layout.
  • JavaScript: For implementing the game logic and functionality.

Author

  • Suman Shaw

Resource

  • CodeWithHarry
  • freeCodeCamp