Force projection disappearing visuals (#4504)
* forceShrink * forceShrink * more quicker to tell it apart from a shield down
This commit is contained in:
@@ -723,6 +723,19 @@ public class Fx{
|
|||||||
stroke(2f * e.fout());
|
stroke(2f * e.fout());
|
||||||
Lines.circle(e.x, e.y, 5f * e.fout());
|
Lines.circle(e.x, e.y, 5f * e.fout());
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
forceShrink = new Effect(30, e -> {
|
||||||
|
color(e.color, e.fout());
|
||||||
|
if(Core.settings.getBool("animatedshields")){
|
||||||
|
Fill.poly(e.x, e.y, 6, e.rotation * e.fout());
|
||||||
|
}else{
|
||||||
|
stroke(1.5f);
|
||||||
|
Draw.alpha(0.09f);
|
||||||
|
Fill.poly(e.x, e.y, 6, e.rotation * e.fout());
|
||||||
|
Draw.alpha(1f);
|
||||||
|
Lines.poly(e.x, e.y, 6, e.rotation * e.fout());
|
||||||
|
}
|
||||||
|
}).layer(Layer.shields),
|
||||||
|
|
||||||
flakExplosionBig = new Effect(30, e -> {
|
flakExplosionBig = new Effect(30, e -> {
|
||||||
color(Pal.bulletYellowBack);
|
color(Pal.bulletYellowBack);
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ public class ForceProjector extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRemoved(){
|
public void onRemoved(){
|
||||||
|
float radius = realRadius();
|
||||||
|
if(!broken && radius > 1f) Fx.forceShrink.at(x, y, radius, team.color);
|
||||||
super.onRemoved();
|
super.onRemoved();
|
||||||
drawer.remove();
|
drawer.remove();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user