The method to emit explosion particles works in a similar way to the one that emits smoke.
gameclass. The parameters are the
ypositions, and the amount of particles to create.
Method SpawnExplosion:Int(x:Float, y:Float, amount:Int)
ivariable ranging from
amountparameter of the method.
For Local i:Int = 1 To amount
xoffset that is used when an image object for the explosion particle is created.
Local xoff:Float = Int(Rnd(0,3))