Class: Fire

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

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

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