Ramu 0.7b doc
class
SimpleParticle : GameObj
Description
A particle system with an “explosion” effect.
Note: This class is depreciated.
Constructor Parameters
img, rect, lifeSpan, particleNumber
Image Object
img: Particle image.Rect
rect: Position and size.float
lifeSpan: Time to particles vanish.int
particleNumber: Number of particles.let img = Ramu.Utils.getImage("https://github.com/HermesPasser/Ramu/blob/master/demos/img/particleblue.png?raw=true"); let particle = new SimpleParticle(img, new Rect(2, 2, 5, 6), 100, 200);