v0.3.0c: improved some staff particle effects

This commit is contained in:
Evan Debenham 2015-06-06 23:14:50 -04:00
parent 270022fd6b
commit 3e884cb569
4 changed files with 19 additions and 11 deletions

View File

@ -109,8 +109,8 @@ public class WandOfCorruption extends Wand {
public void staffFx(MagesStaff.StaffParticle particle) { public void staffFx(MagesStaff.StaffParticle particle) {
particle.color( 0 ); particle.color( 0 );
particle.am = 0.6f; particle.am = 0.6f;
particle.setLifespan(0.6f); particle.setLifespan(0.8f);
particle.acc.set(0, 40); particle.acc.set(0, 20);
particle.setSize( 0f, 3f); particle.setSize( 0f, 3f);
particle.shuffleXY(2f); particle.shuffleXY(2f);
} }

View File

@ -16,6 +16,7 @@ import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.watabou.noosa.audio.Sample; import com.watabou.noosa.audio.Sample;
import com.watabou.utils.Callback; import com.watabou.utils.Callback;
import com.watabou.utils.PointF;
import com.watabou.utils.Random; import com.watabou.utils.Random;
/** /**
@ -91,12 +92,14 @@ public class WandOfFrost extends Wand {
@Override @Override
public void staffFx(MagesStaff.StaffParticle particle) { public void staffFx(MagesStaff.StaffParticle particle) {
particle.color( 0xFFFFFF ); particle.color(0x88CCFF);
particle.am = 0.5f; particle.am = 0.6f;
particle.setLifespan(1.2f); particle.setLifespan(1.5f);
particle.speed.set(0, Random.Float(5, 8)); float angle = Random.Float(PointF.PI2);
particle.setSize( 0f, 1f); particle.speed.polar( angle, 2f);
particle.shuffleXY(2f); particle.acc.set( 0f, 1f);
particle.setSize( 0f, 1.5f);
particle.radiateXY(Random.Float(2f));
} }
@Override @Override

View File

@ -140,6 +140,9 @@ public class WandOfLightning extends Wand {
particle.setSize(0f, 1.5f); particle.setSize(0f, 1.5f);
particle.sizeJitter = 1f; particle.sizeJitter = 1f;
particle.shuffleXY(2f); particle.shuffleXY(2f);
float dst = Random.Float(2f);
particle.x -= dst;
particle.y += dst;
} }
@Override @Override

View File

@ -226,10 +226,12 @@ public class WandOfRegrowth extends Wand {
public void staffFx(MagesStaff.StaffParticle particle) { public void staffFx(MagesStaff.StaffParticle particle) {
particle.color( ColorMath.random(0x004400, 0x88CC44) ); particle.color( ColorMath.random(0x004400, 0x88CC44) );
particle.am = 1f; particle.am = 1f;
particle.setLifespan(0.6f); particle.setLifespan(1.2f);
particle.acc.set(0, 40);
particle.setSize( 1f, 2f); particle.setSize( 1f, 2f);
particle.shuffleXY(2f); particle.shuffleXY(1f);
float dst = Random.Float(11f);
particle.x -= dst;
particle.y += dst;
} }
@Override @Override