Hey, everyone.
In this video, I'll show you how to create a snake game using only HTML, CSS and Javascript.
I hope you enjoy it.
https://github.com/AdsonRamos/snake_game
Play the game:
https://adsonramos.github.io/snake_game/
Trophy image:
https://drive.google.com/file/d/1BUdM6vGVcXsSsSIE6wBXA3ME7hsmjRA6/view?usp=share_link
00:00 - Playing the game
00:45 - Styling the scene
11:20 - Javascript File - Setting variables
17:22 - Gameloop function - Conditions for movement
19:19 - Drawing Background stage
20:08 - Drawing Food
21:12 - Drawing Snake
24:51 - Eating the apple
26:40 - Function to generate food positions randomly
33:02 - Adding Keyboard event to control de snake
38:18 - GameOver condition
40:22 - Drawing GameOver Screen
42:30 - Pause function
44:19 - New Game function
46:54 - Thanks
Please Subscribe!!
#javascript #html #css #programming #asmrprogramming #coding
Download
0 formats
No download links available.
ASMR Programming - How to make a Snake Game in HTML, CSS and Javascript - No Talking | NatokHD