Class: Smoke

Smoke(xPos, yPos, width, yAcceleration, life, xVelocity, yVelocity, flicker, intensity, xAcceleration, size, yOffset) → {Smoke}

new Smoke(xPos, yPos, width, yAcceleration, life, xVelocity, yVelocity, flicker, intensity, xAcceleration, size, yOffset) → {Smoke}

Default Constructor
Parameters:
Name Type Description
xPos float The x position for the smoke
yPos float The y position for the smoke
width float The maximum horizontal offset for the smoke particles
yAcceleration float The vertical acceleration for the smoke paritcles
life float The life for the smoke particles
xVelocity float The initial horizontal boost for the smoke particles
yVelocity float The initial vertical boost for the smoke particles
flicker float How quickly particles shrink
intensity float The # of smoke particles created per update cycle
xAcceleration float The horizontal acceleration for the smoke paritcles
size float The size for the smoke paritcles
yOffset float The maximum vertical offset for the smoke paritcles
Source:
Returns:
New instance of Smoke object
Type
Smoke