Programming Snake Game in Javascript Tutorial -

Programming Snake Game in Javascript Tutorial

gaspar coding
Views: 4627
Like: 63

In this video I show you how to create a snake game in less than 90 lines of javascript code. This is a step by step tutorial and very easy to follow. I use visual studio code for this. If you know Java, you will understand javascript immediately. Embark on a high-octane adventure with smash karts! Race against friends or challenge opponents online, use cunning strategies, and blast your way to victory. This is kart racing redefined.

You can download the code here:

If you liked what you saw. Please leave me a like on the video. Thanks for watching 🙂

#javascript #snake
insipied by


  1. thanks for the great video Gaspar! I am using it as project with my kids to teach them how to program :).

  2. Great video! I followed along and the result came out perfectly!

  3. how do you get that tiny screen that shows the game?

  4. Is there a way to change the sprite of the snake so its not just green blocks?

  5. I am incredibly sorry, but I am trying to write down all of this code, and you keep bouncing around your code🤣.

  6. I wrote all of the code down correctly but when I open the index file the broswer screen is white and I cannot play the game. Could you please help me ?

  7. Great video! I just have 1 small problem The screen is white all the time no matter what i do… Can you please help?

Leave a Reply

Your email address will not be published.