Parser for particle files created with "Starling Particle Editor" or "Particle Designer".
Starling Particle Editor:
See also:
https://github.com/devon-o/Starling-Particle-Editor Particle Designer:
Static methods
staticparse<T>(data:Dynamic, particleGraphic:FlxGraphicAsset, ?emitter:Null<T>, scale:Float = 1):T
This function will parse a *.pex file and return a new emitter. There are some incompatibilities: - It only supports the "Gravity" emitter type. - Tangential and radial acceleration aren't supported. - Blend functions aren't supported. The default blend mode is ADD. @:file(), a string with the content of the file or a XML object.
Parameters:
data | The data to be parsed. It has to be an ID to the assets file, a file embedded with |
---|---|
particleGraphic | The particle graphic |
emitter | (optional) A FlxEmitter. Most properties will be overwritten! |
scale | (optional) Used to scale the resulting emitter. Will scale both the texture size and positions of resulting particles. |
Returns:
A new emitter