extends code will make the new class inherit from another class, meaning it can use variables and function from the inherited class.
Since this will take a lot of time to rework the code, we will skip doing this for the strafer and bomber enemies. However, we will be implementing a new subclass for the enemy boss.
We should see a regular bomber enemy.
This was just a test to prove that
extends will give the Boss class all the stuff inside the Enemy class.
We should see a green bar on the bottom representing the health bar.
You may notice that the Boss still dies to one shot. We will fix that in the next few steps.
We should now be able to hit the enemy ten times before it disappears.
We should see the enemy Boss move down until it fully enters the scene
The boss should now shoot enemies every 3 seconds
If your game looks like this, then this project is officially over!