We'll give the PlayerShip class a method that checks whether enemy projectiles have hit the player's ship (the isCollision() method in the GameObject class).
If there is a hit, it will "kill" the ship and the projectile. We'll also add the player's ship to the Game class.
We'll draw it and add the
Space Invaders (Part 17/34)
- 3
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet