This project is a fun and simple p5.js + p5.play arcade style game where the user has to catch falling objects using a basket. And earn points by catching them and not letting too many fall, or else they lose!
- You should use the left ⬅️ and right ➡️ arrow keys to move the basket.
- Catch the falling objects to gain points.
- Each catch will give you +1 point and missing one will subtract -1 point.
- You have to reach 15 points to win or fall to -5 points to lose.
There is a custom background and also a basket as a catcher. Random colored falling circles that have different speeds and a collision detector which supports the score tracking to increase and decrease points.
How to move an object using arrow keys, how to increase or decrease points by detecting sprite collision. Win/loose statements and also how to add images to objects and backgrounds.