Skip to content

TowhidKashem/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game in Vanilla JavaScript

alt text

Note: this was built and only tested on the latest version of Chrome on a Windows 10 desktop. Also the project doesn't have any external dependencies, the package.json and node_modules is for enabling support for publishing to github pages where the demo is hosted.

I got a little too into the project and ended up spending longer than the suggested 3 hours. Having never made a game before or worked with the Canvas API it was an interesting project for me.

Overall I'm happy with the way it turned out, the main area of improvement is of course reducing the bloated single class into separate modules (for example a separate class to handle the welcome screen and it's related actions, etc).

Also I would have liked to use SASS in the project and made the page responsive on mobile.

About

Classic snake game built in Vanilla JavaScript using the Canvas API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published