top of page
  • Writer's pictureDinaKhalil

ICM | #5

For this class, with the help of YouTube, I created my first game on p5.js.

While creating this game, I learned how to create levels within one sketch. You can create as many levels as you like using the if statement of course in the draw function and assign a purpose below in your own functions as to what happens to go to the next level.

Try playing below 😃

The game is called “chase the ball”, which is self-explanatory. All you have to do is to chase the ball or hover your mouse over the ball to get points. And once you get 5 points it gets you to the final level, which is ✌🏼harder✌🏼 and when you get 10 points YOU WIN!!

Inspiration & Special thanks to

bottom of page