Additional bullet effects / Rotational replacement

This commit is contained in:
Anuken
2018-04-03 18:36:18 -04:00
parent 94f2e880cd
commit 636da8f95f
9 changed files with 29 additions and 8 deletions

View File

@@ -54,6 +54,18 @@ public class BulletFx {
Lines.lineAngle(e.x + x, e.y + y, ang, e.fract()*3 + 1f);
});
Draw.reset();
}),
despawn = new Effect(12, e -> {
Draw.color(lighterOrange, Color.GRAY, e.ifract());
Lines.stroke(e.fract());
Angles.randLenVectors(e.id, 7, e.ifract()*7f, e.rotation, 40f, (x, y) -> {
float ang = Mathf.atan2(x, y);
Lines.lineAngle(e.x + x, e.y + y, ang, e.fract()*2 + 1f);
});
Draw.reset();
});
}