Just like with the
Enemy class, we will create the emitter class in one batch:
ParticleEmitter. Again, this one isn't extended from anything.
Field xp:Float Field yp:Float
kindfield. Some particles will be colored, and so we need to tell the emitter to do that.
Newconstructor method will have the
ypositions as parameters. Also it will take the
timefactor and the
kindflag as values.
Method New(x:Float, y:Float, time:Int, knd:Int) ...