Let's override the method for destroying an enemy ship. It sets the isAlive field to false and sets the destruction animation matrix. We'll also create an isVisible() method in the Ship class. It will return false after the entire animation has been displayed for a "dead" ship.
Space Invaders (Part 27/34)
You must be signed in to leave a comment
This page doesn't have any comments yet