Shield flash on top (#8373)
Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
@@ -93,13 +93,13 @@ public class ForceFieldAbility extends Ability{
|
|||||||
checkRadius(unit);
|
checkRadius(unit);
|
||||||
|
|
||||||
if(unit.shield > 0){
|
if(unit.shield > 0){
|
||||||
Draw.z(Layer.shields);
|
|
||||||
|
|
||||||
Draw.color(unit.team.color, Color.white, Mathf.clamp(alpha));
|
Draw.color(unit.team.color, Color.white, Mathf.clamp(alpha));
|
||||||
|
|
||||||
if(Vars.renderer.animateShields){
|
if(Vars.renderer.animateShields){
|
||||||
|
Draw.z(Layer.shields + 0.001f * alpha);
|
||||||
Fill.poly(unit.x, unit.y, sides, realRad, rotation);
|
Fill.poly(unit.x, unit.y, sides, realRad, rotation);
|
||||||
}else{
|
}else{
|
||||||
|
Draw.z(Layer.shields);
|
||||||
Lines.stroke(1.5f);
|
Lines.stroke(1.5f);
|
||||||
Draw.alpha(0.09f);
|
Draw.alpha(0.09f);
|
||||||
Fill.poly(unit.x, unit.y, sides, radius, rotation);
|
Fill.poly(unit.x, unit.y, sides, radius, rotation);
|
||||||
|
|||||||
@@ -243,13 +243,13 @@ public class ForceProjector extends Block{
|
|||||||
if(!broken){
|
if(!broken){
|
||||||
float radius = realRadius();
|
float radius = realRadius();
|
||||||
|
|
||||||
Draw.z(Layer.shields);
|
|
||||||
|
|
||||||
Draw.color(team.color, Color.white, Mathf.clamp(hit));
|
Draw.color(team.color, Color.white, Mathf.clamp(hit));
|
||||||
|
|
||||||
if(renderer.animateShields){
|
if(renderer.animateShields){
|
||||||
|
Draw.z(Layer.shields + 0.001f * hit);
|
||||||
Fill.poly(x, y, sides, radius, shieldRotation);
|
Fill.poly(x, y, sides, radius, shieldRotation);
|
||||||
}else{
|
}else{
|
||||||
|
Draw.z(Layer.shields);
|
||||||
Lines.stroke(1.5f);
|
Lines.stroke(1.5f);
|
||||||
Draw.alpha(0.09f + Mathf.clamp(0.08f * hit));
|
Draw.alpha(0.09f + Mathf.clamp(0.08f * hit));
|
||||||
Fill.poly(x, y, sides, radius, shieldRotation);
|
Fill.poly(x, y, sides, radius, shieldRotation);
|
||||||
|
|||||||
Reference in New Issue
Block a user