A game I built using the fundamentals of OOP.
To play the game: switch the spaceship to match the color of the incoming ball using spacebar. You have to be fast!
To make it more challenging I added an alien UFO that comes from the side. Press S to activate the shield and avoid collision with the UFO.
Losing condtions:
- Colliding with the alien without activating the shield.
- Color of the spaceship doesn't match the ball's color at intersection.
HTML5, CSS3, Canvas, JavaScript, OOP, p5.js