Skip to content

A mini Project of Snake game using HTML,CSS & JAVASCRIPT (not Responsive)

Notifications You must be signed in to change notification settings

Shaw145/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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