Add shadow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")){
|
||||
|
||||
Reference in New Issue
Block a user