Sublimate visuals, damage/length still broken

This commit is contained in:
Anuken
2021-11-24 12:30:01 -05:00
parent ba14151a01
commit 211c0b2e71
32 changed files with 177 additions and 72 deletions

View File

@@ -62,6 +62,17 @@ public class Drawf{
points.add(Tmp.v1.x + baseX, Tmp.v1.y + baseY);
}
public static void additive(TextureRegion region, Color color, float x, float y, float rotation, float layer){
float pz = Draw.z();
Draw.z(layer);
Draw.color(color);
Draw.blend(Blending.additive);
Draw.rect(region, x, y, rotation);
Draw.blend();
Draw.color();
Draw.z(pz);
}
public static void dashLine(Color color, float x, float y, float x2, float y2){
int segments = (int)(Math.max(Math.abs(x - x2), Math.abs(y - y2)) / tilesize * 2);
Lines.stroke(3f, Pal.gray);