initial commit, kind of working.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
package com.arc.dh.util
|
||||
{
|
||||
import com.arc.dh.Color;
|
||||
import com.arc.flixel.ArcParticleSystem;
|
||||
|
||||
public class ParticleSystem
|
||||
{
|
||||
|
||||
public static var p_black:Class = ParticleSystem_p_black;
|
||||
|
||||
public static var p_red:Class = ParticleSystem_p_red;
|
||||
|
||||
public static var p_blue:Class = ParticleSystem_p_blue;
|
||||
|
||||
public static var p_green:Class = ParticleSystem_p_green;
|
||||
|
||||
public static var p_yellow:Class = ParticleSystem_p_yellow;
|
||||
|
||||
public static var p_purple:Class = ParticleSystem_p_purple;
|
||||
|
||||
public static var p_cyan:Class = ParticleSystem_p_cyan;
|
||||
|
||||
public static var p_white:Class = ParticleSystem_p_white;
|
||||
|
||||
public static var p_prime:Class = ParticleSystem_p_prime;
|
||||
|
||||
public static var p_rebound:Class = ParticleSystem_p_rebound;
|
||||
|
||||
public static var p_diamonds:Class = ParticleSystem_p_diamonds;
|
||||
|
||||
public static var p_pot:Class = ParticleSystem_p_pot;
|
||||
|
||||
public static var p_woodenCrate:Class = ParticleSystem_p_woodenCrate;
|
||||
|
||||
public static var p_steelCrate:Class = ParticleSystem_p_steelCrate;
|
||||
|
||||
private static var _initialized:Boolean = false;
|
||||
|
||||
public function ParticleSystem()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function initialize() : void
|
||||
{
|
||||
if(_initialized)
|
||||
{
|
||||
return;
|
||||
}
|
||||
ArcParticleSystem.registerEmitter(Color.RED,p_red,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.BLUE,p_blue,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.GREEN,p_green,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.YELLOW,p_yellow,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.PURPLE,p_purple,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.BLACK,p_black,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.CYAN,p_cyan,100,false);
|
||||
ArcParticleSystem.registerEmitter(Color.WHITE,p_white,100,false);
|
||||
ArcParticleSystem.registerEmitter("prime",p_prime,100,true);
|
||||
ArcParticleSystem.registerEmitter("rebound",p_rebound,100,true);
|
||||
ArcParticleSystem.registerEmitter("diamonds",p_diamonds,100,true);
|
||||
ArcParticleSystem.registerEmitter("pot",p_pot,50,true);
|
||||
ArcParticleSystem.registerEmitter("wooden_crate",p_woodenCrate,50,true);
|
||||
ArcParticleSystem.registerEmitter("steel_crate",p_steelCrate,50,true);
|
||||
_initialized = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user