Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
exp
 
 
 
 
src
 
 
 
 
 
 
 
 

README.md

timelinefx

JavaScript port of TimelineFX particle system

Allows particle system effects created in the standalone TimelineFX tool to be loaded and run within a browser.

Basic usage:

  • Unzip TimelineFX .eff file containing xml and images.
  • Place those assets where they can be accessed from your javascript.
// Create particle manager and fx library
var particleManager = new ParticleManager( /* particle limit = */ 1000, /* layers = */ 1 );
EffectsLibrary.Init();
EffectsLibrary.Load( xml );

// Grab an effect prototype
var effectPrototype = EffectsLibrary.GetEffect( "explosion" );
effectPrototype.CompileAll();

// Create/spawn an effect instance
var currentEffectInstance = new Effect( effectPrototype, particleManager );
particleManager.AddEffect( currentEffectInstance );``

A complete demo can be found here: http://factor43.com/projects/tfx/demo

About

javascript port of timelinefx particle system

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.