Story
I took the challenge that coding a Snake game in 1 hour using Javascript after my friend told me that his friend can do it. Of course, I have never done it before and I am not a developer who programs games. My mindset is very simple, just think about how to draw the snake make it run, and eat the food...
The game hasn't finished yet, still has bugs because I only did it for around 1 hour. Let's see what am I had done:
Source code:
https://github.com/azlogs/snake-game/
How to play the game
Please take note that, this game only runs and plays on desktop, it's not available on mobile
Link game: https://www.albertpham.me/p/snake-game-code-in-1-hour.html
JsCode