Catch the Delicious Pies: A Pi Day Game

TLDRIn this beginner-friendly tutorial, learn how to make a game where you catch falling pies with the digits of pi. Move the plate to catch the pies in the correct order and earn points. But be careful not to miss any! Happy Pi Day!

Key insights

🥧Create a game where you catch falling pies with the digits of pi.

🎮Increase engagement by making the game beginner-friendly and easy to play.

🌟Encourage users to create their own version of the game and share their creations.

🔢Teach programming fundamentals such as variables, conditionals, loops, and objects.

🍽️Add a scoring system and keep track of the correct order of catching the pies.

Q&A

What programming language is used in this tutorial?

This tutorial uses the p5.js library, which is a JavaScript library for creative coding.

Is prior programming experience required to follow along?

No, this tutorial is beginner-friendly and no prior programming experience is necessary.

Can I customize the game and add my own features?

Absolutely! Feel free to customize the game and add your own creative twists to make it your own.

How can I share my version of the game with others?

You can share your version of the game by hosting it on a website, sharing the code on a platform like GitHub, or even creating a video tutorial to showcase your creation!

What can I learn from this tutorial?

This tutorial teaches programming fundamentals like variables, conditionals, loops, and objects, while also providing an opportunity for creativity and problem-solving.

Timestamped Summary

00:00Introduction to the game and its objective of catching falling pies with the digits of pi.

02:15Setting up the game environment and creating the plate object.

03:57Creating the falling pies and implementing their movement and interaction with the plate.

07:07Implementing a scoring system and determining the correct order of catching the pies.

10:52Adding multiple pies and implementing their removal when they reach the bottom.

13:44Wrap-up, discussing the game's educational value and possibilities for customization and sharing.