hoothin / Asparticles

Display particle systems created by Particle Designer (or other Cocos2d particle engines) inside of HAXE OPENFL2 粒子特效引擎

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASParticles

Rework of http://code.google.com/p/haxe-particle-designer/

As Tilesheet of openfl do not support rotation, alpha, scale and RGB under flash target, BitmapData.Draw will be used instead of Tilesheet, and it will be shown only above (0,0)

Install via haxelib with

haxelib git asparticles https://github.com/hoothin/asparticles
var particles = ASParticleSystem.particleWithFile("fire.plist", "particles/");
addChild(particles);

Call destroy while complete

particles.destroy();

U can do sth before add a particle

particles.beforeAddCallBack = function(a){particles.sourcePosition.x = a*500;};

About

Display particle systems created by Particle Designer (or other Cocos2d particle engines) inside of HAXE OPENFL2 粒子特效引擎

License:GNU General Public License v2.0


Languages

Language:Haxe 100.0%