Learn the Skills Netflix, Meta, and Capital One Actually Hire For
Google AI Professional Certificate - Learn AI Skills That Get You Hired
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
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