Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The Snake Game

Coding Train via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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

Reviews

Start your review of The Snake Game

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.