Add shadow

This commit is contained in:
Voz-Duh
2020-09-23 12:39:06 +03:00
parent 5895e2f23c
commit 9503e26e1d
31 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

@@ -202,6 +202,9 @@ public abstract class Turret extends Block{
tr2.trns(rotation, -recoil);
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
Draw.rect(region, x + tr2.x - (size / 2f), y + tr2.y - (size / 2f), rotation - 90);
Draw.color();
drawer.get(this);
if(heatRegion != Core.atlas.find("error")){