Added metal floor / Implemented teleporter activation

This commit is contained in:
Anuken
2018-04-07 21:37:33 -04:00
parent 4b39e5fab6
commit 117e2e2cb6
16 changed files with 443 additions and 316 deletions

View File

@@ -27,6 +27,10 @@ public class Blocks {
solid = true;
}},
metalfloor = new Floor("metalfloor"){{
variants = 6;
}},
deepwater = new Floor("deepwater") {{
variants = 0;
solid = true;

View File

@@ -215,6 +215,22 @@ public class BlockFx {
Draw.reset();
});
}),
teleportActivate = new Effect(50, e -> {
Draw.color(e.color);
e.scaled(8f, e2 -> {
Lines.stroke(e2.fout()*4f);
Lines.circle(e2.x, e2.y, 4f + e2.fin()*27f);
});
Lines.stroke(e.fout()*2f);
Angles.randLenVectors(e.id, 30, 4f + 40f * e.fin(), (x, y) -> {
Lines.lineAngle(e.x + x, e.y + y, Mathf.atan2(x, y), e.fin()*4f + 1f);
});
Draw.reset();
}),
teleport = new Effect(60, e -> {
Draw.color(e.color);
Lines.stroke(e.fin()*2f);