NMDD FINAL: Using P5 to Make a Game

We’ve been learning P5 in class so I tried to make a simple game using a few of the P5 functions we’ve learned in class plus the ones available to learn online. Here’s the link: https://editor.p5js.org/elin7/sketches/E6UySb5jI

Basically, it’s a game where you click on the moving circle to earn a point added to your score. For every 10 points you add to your score, you gain a level (you start out on Level 1). I made this game so that it has about 11 levels. As you surpass each level, you will notice the circles start to get smaller and smaller and therefore harder to press and earn points. While writing the P5 code for this, I started to understand more about how the different variables I created work and how the function setup code and function draw codes I wrote would interact with each other after a series of trial and error with getting this game to function.

Leave a comment