UC San Diego Product Management Certificate — AI-Powered PM Training
The Fastest Way to Become a Backend Developer Online
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Embark on a 27-minute coding challenge to create a p5.js version of the classic Snake Game. Learn step-by-step how to build the game from scratch, including creating a snake object, implementing keyboard controls, setting up grid and world constraints, adding food for the snake to eat, making the snake grow longer, and establishing a game over state. Follow along as the instructor demonstrates coding techniques, fixes mistakes, and completes the challenge. Access additional resources such as the challenge webpage, p5 editor, debugging tips, and a 2018 version of the tutorial for further learning and exploration.
Syllabus
Creating a Snake Object.
Adding keyboard control.
Grid and World Constraints.
Adding Food!.
Eating The Food!.
Getting Longer When Eating.
Fixing Mistakes.
Game Over State.
Coding Challenge Complete Choo Choo!.
Taught by
The Coding Train