maheshrao98 / SnakeJSGame

A simple snake 2D clone created using Javascript , that allows players to play the game in web browsers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SnakeJSGame

A simple snake 2D clone created using Javascript , that allows players to play the game in web browsers.

To run the game

  1. Download all the files from the repository
  2. Run a server ( Wampp, Xampp) or you could just use Live Server plugin that is available in VS Code.
  3. Then open the index.html file in the port that is running on the server.

To play the game

  • Up Arrow -> Move the snake up
  • Down Arrow -> Move the snake down
  • Left Arrow -> Move the snake left
  • Right Arrow -> Move the snake right
  • SpaceBar -> Pause the game

About

A simple snake 2D clone created using Javascript , that allows players to play the game in web browsers.


Languages

Language:JavaScript 93.9%Language:HTML 6.1%