v0.3.0c: improved some staff particle effects
This commit is contained in:
parent
270022fd6b
commit
3e884cb569
|
@ -109,8 +109,8 @@ public class WandOfCorruption extends Wand {
|
|||
public void staffFx(MagesStaff.StaffParticle particle) {
|
||||
particle.color( 0 );
|
||||
particle.am = 0.6f;
|
||||
particle.setLifespan(0.6f);
|
||||
particle.acc.set(0, 40);
|
||||
particle.setLifespan(0.8f);
|
||||
particle.acc.set(0, 20);
|
||||
particle.setSize( 0f, 3f);
|
||||
particle.shuffleXY(2f);
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.watabou.utils.Callback;
|
||||
import com.watabou.utils.PointF;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
/**
|
||||
|
@ -91,12 +92,14 @@ public class WandOfFrost extends Wand {
|
|||
|
||||
@Override
|
||||
public void staffFx(MagesStaff.StaffParticle particle) {
|
||||
particle.color( 0xFFFFFF );
|
||||
particle.am = 0.5f;
|
||||
particle.setLifespan(1.2f);
|
||||
particle.speed.set(0, Random.Float(5, 8));
|
||||
particle.setSize( 0f, 1f);
|
||||
particle.shuffleXY(2f);
|
||||
particle.color(0x88CCFF);
|
||||
particle.am = 0.6f;
|
||||
particle.setLifespan(1.5f);
|
||||
float angle = Random.Float(PointF.PI2);
|
||||
particle.speed.polar( angle, 2f);
|
||||
particle.acc.set( 0f, 1f);
|
||||
particle.setSize( 0f, 1.5f);
|
||||
particle.radiateXY(Random.Float(2f));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -140,6 +140,9 @@ public class WandOfLightning extends Wand {
|
|||
particle.setSize(0f, 1.5f);
|
||||
particle.sizeJitter = 1f;
|
||||
particle.shuffleXY(2f);
|
||||
float dst = Random.Float(2f);
|
||||
particle.x -= dst;
|
||||
particle.y += dst;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -226,10 +226,12 @@ public class WandOfRegrowth extends Wand {
|
|||
public void staffFx(MagesStaff.StaffParticle particle) {
|
||||
particle.color( ColorMath.random(0x004400, 0x88CC44) );
|
||||
particle.am = 1f;
|
||||
particle.setLifespan(0.6f);
|
||||
particle.acc.set(0, 40);
|
||||
particle.setLifespan(1.2f);
|
||||
particle.setSize( 1f, 2f);
|
||||
particle.shuffleXY(2f);
|
||||
particle.shuffleXY(1f);
|
||||
float dst = Random.Float(11f);
|
||||
particle.x -= dst;
|
||||
particle.y += dst;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user