This commit is contained in:
Voz-Duh
2020-09-23 16:47:11 +03:00
parent b4d0df03df
commit 868c6a6996
4 changed files with 5 additions and 3 deletions

View File

@@ -72,6 +72,8 @@ public class Vars implements Loadable{
public static final int maxTextLength = 150;
/** max player name length in bytes */
public static final int maxNameLength = 40;
/** shadow color for turrets */
public static final float turretShadowColor = Color.toFloatBits(0, 0, 0, 0.22f);
/** displayed item size when ingame. */
public static final float itemSize = 5f;
/** units outside of this bound will die instantly */

View File

@@ -111,7 +111,7 @@ public class PointDefenseTurret extends Block{
@Override
public void draw(){
Draw.rect(baseRegion, x, y);
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
Draw.color(Vars.turretShadowColor);
Draw.rect(region, x - (size / 2f), y - (size / 2f), rotation - 90);
Draw.color();
Draw.rect(region, x, y, rotation - 90);

View File

@@ -106,7 +106,7 @@ public class TractorBeamTurret extends Block{
@Override
public void draw(){
Draw.rect(baseRegion, x, y);
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
Draw.color(Vars.turretShadowColor);
Draw.rect(region, x - (size / 2f), y - (size / 2f), rotation - 90);
Draw.color();
Draw.rect(region, x, y, rotation - 90);

View File

@@ -202,7 +202,7 @@ public abstract class Turret extends Block{
tr2.trns(rotation, -recoil);
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
Draw.color(Vars.turretShadowColor);
Draw.rect(region, x + tr2.x - (size / 2f), y + tr2.y - (size / 2f), rotation - 90);
Draw.color();
drawer.get(this);