Better spawn selection
This commit is contained in:
@@ -112,7 +112,8 @@ public class Blocks implements ContentList{
|
||||
{
|
||||
variants = 0;
|
||||
}
|
||||
public void draw(){}
|
||||
@Override
|
||||
public void drawBase(Tile tile){}
|
||||
};
|
||||
|
||||
cliff = new Cliff("cliff");
|
||||
|
||||
@@ -42,12 +42,13 @@ public class Fx{
|
||||
Tmp.v1.set(e.x, e.y).interpolate(Tmp.v2.set(to), e.fin(), Interpolation.pow3)
|
||||
.add(Tmp.v2.sub(e.x, e.y).nor().rotate90(1).scl(Mathf.randomSeedRange(e.id, 1f) * e.fslope() * 10f));
|
||||
float x = Tmp.v1.x, y = Tmp.v1.y;
|
||||
float size = Math.min(0.8f + e.rotation / 5f, 2);
|
||||
|
||||
stroke(e.fslope() * 2f, Pal.accent);
|
||||
Lines.circle(x, y, e.fslope() * 2f);
|
||||
stroke(e.fslope() * 2f * size, Pal.accent);
|
||||
Lines.circle(x, y, e.fslope() * 2f * size);
|
||||
|
||||
color(e.color);
|
||||
Fill.circle(x, y, e.fslope() * 1.5f);
|
||||
Fill.circle(x, y, e.fslope() * 1.5f * size);
|
||||
}),
|
||||
|
||||
lightning = new Effect(10f, 500f, e -> {
|
||||
|
||||
Reference in New Issue
Block a user