Class Index | File Index

Classes


Class R.particles.effects.ExplosionParticle

An explosion particle
Defined in: explosion.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
draw(renderContext, time, dt)
Called by the particle engine to draw the particle to the rendering context.
Class Detail
R.particles.effects.ExplosionParticle(pos, ttl, decay)
Parameters:
pos
{Point2D} The starting position of the particle. A velocity vector will be derived from this position.
ttl
{Number} Particle lifetime (time to live) in milliseconds
decay
{Number} A floating point which indicates the speed decay
Method Detail
draw(renderContext, time, dt)
Called by the particle engine to draw the particle to the rendering context.
Parameters:
renderContext
{RenderContext} The rendering context
time
{Number} The engine time in milliseconds
dt
{Number} The delta between the world time and the last time the world was updated in milliseconds.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:19 GMT-0400 (EDT)