How to code the game “Snake”

Writing computer code while creating games is an amazing way to express yourself, just like composing a poem or painting on a canvas. In this course, you’ll learn the very basics, and the lessons are as easy to understand as possible. As you work through the emails, you will build a classic video game called “Snake,” which was recently added to the Museum of Modern Art—and is installed on almost every Nokia cell phone. It is fun and addicting, and your friends and family will love playing a game you created!

This course can be taken by beginner programmers. Basic programming knowledge is recommended to have for students who want to take this course.

   132 students completed this course

   100% recommend it to other students

   Teacher: Studio Barn Inc.

 

Start Course

 

100% of students recommend

  “Really manageable way to try out js coding. Thanks for a great course! The gifs were super helpful.”

 

Course plan

Lesson 1. Let’s Code a Game
Lesson 2. Let’s Make a Game Board
Lesson 3. Let’s Make a Snake
Lesson 4. Moving Our Snake
Lesson 5. Adding Food to Eat
Lesson 6. Getting the Snake to Eat the Food
Lesson 7. Growing a Tail, Part 1
Lesson 8. Growing a Tail, Part 2
Lesson 9. Losing Your Tail
Lesson 10. Finishing Your Game
+ Quiz

 

Format

Starting tomorrow, you will receive a new lesson straight to your inbox every morning for 10 days. Lessons take just 5 minutes to read, and each course is followed by fun, knowledge-testing quiz.

 

Membership

Highbrow teaches you something new every day. As you sip your morning coffee and rub the sleep from your eyes, Highbrow delivers a short, 5-minute email lesson to help you learn anything from art and philosophy, to business and personal development.

Join Highbrow and get unlimited access to our entire catalog of 250+ courses created by world renowned experts. With Highbrow you’ll never run out of new things to learn.

First 30 days are free. Cancel anytime. → Learn more about membership

 

  • Format
    One lesson delivered via email daily
  • Duration
    10 days
  • Time
    5 minutes reading a day

Related Courses