We're going to build out the explosion effect that will play when an enemy dies. The effect will also play when an enemy makes contact with the player. The effect will comprise three parts:
We're going to make a new class named
ExplosionEffect in the source folder. The class extends the
Here's what it should look like to start with:
package; import flixel.group.FlxGroup; class ExplosionEffect ...