2.5.0 • Published 5 years ago

vf-timelinefx v2.5.0

Weekly downloads
105
License
-
Repository
-
Last release
5 years ago

timelinefx

JavaScript fork of the timelinefx lib.

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( drawSprite, 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

Fork

This fork brings the timelinefxjs lib to ES6+ syntax & style. Eventually we will include typescript definitions.

There is only one major API change between this fork and gooddoggy's timelinefx, and that is that ParticleManager takes 3 arguments now, the first one being the drawSprite function.

2.5.0

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.21

5 years ago

2.2.20

5 years ago

2.2.19

5 years ago

2.2.18

5 years ago

2.2.17

5 years ago

2.2.16

5 years ago

2.2.15

5 years ago

2.2.14

5 years ago

2.2.13

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.10

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.0.0

5 years ago