top of page

ICM | #5

  • Writer: DinaKhalil
    DinaKhalil
  • Oct 13, 2019
  • 1 min read

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 https://www.youtube.com/watch?v=c29a9h8uP4k


Comments


  • Medium
  • LinkedIn
  • Instagram
  • Spotify

©2023 by Dina Khalil.

šŸ™‹šŸ»‍ā™€ļøšŸ“±šŸ’»šŸ“½šŸ”ŒšŸ“°

bottom of page