#100DaysOfCode Day 20
๐ I CREATED PART OF SNAKE! ๐
CLICK HERE and press "Run" to try it out.
Yesterday I created the start of my snake game, and I am so excited to complete it today because if you had an old Nokia cellphone, you know how much fun Snake is!
Lessons
- Always break down the problem at hand.
- Animating shapes get a little complicated at first. I guess practice makes perfect.
Breaking down how to build Snake
- Create the snake body
- Move the Snake
- Control the Snake
- Detect collision with food
- Create a scoreboard
- When should the game end
6.1. Snake collides with the wall
6.2. Snake collides with its tail
I had loads of fun, and stay tuned for tomorrow to try the game.
Want to stay up to date with my learning journey? Just sign up for my newsletter.