Skip to content

gooddoggy/timelinefx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •