kdexd / snake

The old and famous game of Snake!

Repository from Github https://github.comkdexd/snakeRepository from Github https://github.comkdexd/snake

Snake-Game

This is a simple "Snake" Game, made by me, completely in JavaScript. The working of all the functions involvd is described in the comments. The main file handles the logic, and the painters.js file helps in showing the game on the canvas graphically. It basically has one prominent function called gamePlay(), which is called after every 80 milliseconds, whichhelps in validating the movements of the snake, and paintng the snake.

If you think you can add better UI, or add maybe some new power-ups, please do send a pull request, and I will be happy to accept!

About

The old and famous game of Snake!


Languages

Language:HTML 58.2%Language:JavaScript 39.1%Language:CSS 2.8%