Skip to content

Commit 3e9d4ef

Browse files
committed
Blurred missile shadows
1 parent 59c42ce commit 3e9d4ef

13 files changed

+4
-2
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

src/progressed/entities/bullet/pseudo3d/ArcBasicBulletType.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ArcBasicBulletType extends ArcBulletType{
1313
public String sprite;
1414
public boolean bloomSprite = true;
1515
public boolean drawShadow = false, spinShade = true;
16-
public TextureRegion region, blRegion, trRegion;
16+
public TextureRegion region, blRegion, trRegion, shadowRegion;
1717

1818
public ArcBasicBulletType(float speed, float damage, String sprite){
1919
super(speed, damage);
@@ -37,6 +37,8 @@ public void load(){
3737
blRegion = Core.atlas.find(sprite + "-bl");
3838
trRegion = Core.atlas.find(sprite + "-tr");
3939
}
40+
41+
shadowRegion = Core.atlas.find(sprite + "-shadow", region);
4042
}
4143

4244
@Override
@@ -66,7 +68,7 @@ public void draw(Bullet b){
6668

6769
Draw3D.shadow(() -> {
6870
Draw.scl(scl);
69-
PMDrawf.shadow(region, sX, sY, fsRot, sAlpha);
71+
PMDrawf.shadow(shadowRegion, sX, sY, fsRot, sAlpha);
7072
Draw.scl();
7173
});
7274
}

0 commit comments

Comments
 (0)