public EarthParticle() { super(); lifespan = 0.5f; color( ColorMath.random( 0x555555, 0x777766 ) ); acc.set( 0, +40 ); }
public WaterParticle() { super(); acc.y = 50; am = 0.5f; color( ColorMath.random( 0xb6ccc2, 0x3b6653 ) ); size( 2 ); }
public WoolParticle() { super(); color( ColorMath.random( 0x999999, 0xEEEEE0 ) ); acc.set( 0, -40 ); }
public EarthParticle() { super(); lifespan = 0.5f; color( ColorMath.random( 0x555555, 0x777766 ) ); acc.set( 0, +40 ); }
public EarthParticle() { super(); color( ColorMath.random( 0x444444, 0x777766 ) ); angle = Random.Float( -30, 30 ); lifespan = 0.5f; }
public EarthParticle() { super(); color( ColorMath.random( 0x444444, 0x777766 ) ); angle = Random.Float( -30, 30 ); lifespan = 0.5f; }
public EarthParticle() { super(); color( ColorMath.random( 0x444444, 0x777766 ) ); angle = Random.Float( -30, 30 ); lifespan = 0.5f; }
public WoolParticle() { super(); color( ColorMath.random( 0x999999, 0xEEEEE0 ) ); acc.set( 0, -40 ); }
public EarthParticle() { super(); lifespan = 0.5f; color( ColorMath.random( 0x555555, 0x777766 ) ); acc.set( 0, +40 ); }
public WaterParticle() { super(); acc.y = 50; am = 0.5f; color( ColorMath.random( 0xb6ccc2, 0x3b6653 ) ); size( 2 ); }
public WoolParticle() { super(); color( ColorMath.random( 0x999999, 0xEEEEE0 ) ); acc.set( 0, -40 ); }
@Override public void emit( Emitter emitter, int index, float x, float y ) { LeafParticle p = ((LeafParticle)emitter.recycle( LeafParticle.class )); p.color( ColorMath.random( 0x004400, 0x88CC44 ) ); p.reset( x, y ); } };
@Override public void emit( Emitter emitter, int index, float x, float y ) { LeafParticle p = ((LeafParticle)emitter.recycle( LeafParticle.class )); p.color( ColorMath.random( Dungeon.level.color1, Dungeon.level.color2 ) ); p.reset( x, y ); } };
@Override public void emit( Emitter emitter, int index, float x, float y ) { LeafParticle p = ((LeafParticle)emitter.recycle( LeafParticle.class )); p.color( ColorMath.random( Dungeon.level.color1, Dungeon.level.color2 ) ); p.reset( x, y ); } };
@Override public void emit( Emitter emitter, int index, float x, float y ) { LeafParticle p = ((LeafParticle)emitter.recycle( LeafParticle.class )); p.color( ColorMath.random( 0x004400, 0x88CC44 ) ); p.reset( x, y ); } };
@Override public void emit( Emitter emitter, int index, float x, float y ) { LeafParticle p = ((LeafParticle)emitter.recycle( LeafParticle.class )); p.color( ColorMath.random( 0x004400, 0x88CC44 ) ); p.reset( x, y ); } };
@Override public void staffFx(MagesStaff.StaffParticle particle) { particle.color( ColorMath.random(0x004400, 0x88CC44) ); particle.am = 1f; particle.setLifespan(1f); particle.setSize( 1f, 1.5f); particle.shuffleXY(0.5f); float dst = Random.Float(11f); particle.x -= dst; particle.y += dst; }
@Override public void staffFx(MagesStaff.StaffParticle particle) { particle.color( ColorMath.random( 0xAAAAAA, 0xFF8800) ); particle.am = 0.6f; particle.setLifespan( 1f ); particle.acc.set(0, 20); particle.setSize( 0.5f, 3f ); particle.shuffleXY( 1f ); }
@Override public void staffFx(MagesStaff.StaffParticle particle) { particle.color( ColorMath.random( 0xAAAAAA, 0xFF8800) ); particle.am = 0.6f; particle.setLifespan( 1f ); particle.acc.set(0, 20); particle.setSize( 0.5f, 3f ); particle.shuffleXY( 1f ); }
@Override public void update() { super.update(); if (Random.Float() < Game.elapsed) { PixelParticle spark = (PixelParticle)sparks.recycle( PixelParticle.Shrinking.class ); spark.reset( x, y, ColorMath.random( COLOR, 0x66FF66 ), 2, Random.Float( 0.5f, 1.0f ) ); spark.speed.set( Random.Float( -40, +40 ), Random.Float( -60, +20 ) ); spark.acc.set( 0, +80 ); sparks.add( spark ); } }