Skip to content

This is a simple implementation of the classic Snake game using HTML, CSS, and JavaScript. The game is played on a canvas element and controlled using the arrow keys on the keyboard.

Notifications You must be signed in to change notification settings

mohdriyaan/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake-Game Using HTML,CSS,JS

This is a simple implementation of the classic Snake game using HTML, CSS, and JavaScript. The game is played on a canvas element and controlled using the arrow keys on the keyboard.

Getting Started

To play the game, simply open the link Snake-Game in your web browser. The game will start automatically, and you can control the snake using the arrow keys on your keyboard.

How To Play

The objective of the game is to eat as many apples as possible without colliding with the walls or the snake's own body. As the snake eats more apples, it will grow in length and move faster.

You can control the direction of the snake using the arrow keys on your keyboard:

  • Up: Press the up arrow key to move the snake upwards.
  • Down: Press the down arrow key to move the snake downwards.
  • Left: Press the left arrow key to move the snake to the left.
  • Right: Press the right arrow key to move the snake to the right.

Built With

  • HTML
  • CSS
  • JavaScript

Acknowledgements

This game was inspired by the classic Snake game that was popular in the late 1990s. Thanks to the developers of that game for providing the inspiration for this project.

About

This is a simple implementation of the classic Snake game using HTML, CSS, and JavaScript. The game is played on a canvas element and controlled using the arrow keys on the keyboard.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published