Lightning turret tweaks / Beginning of teleporter rework
This commit is contained in:
@@ -115,7 +115,7 @@ public class WeaponBlocks{
|
||||
chargeMaxDelay = 30f;
|
||||
chargeEffects = 7;
|
||||
shootEffect = ShootFx.lightningShoot;
|
||||
chargeEffect = ShootFx.lancerLaserCharge;
|
||||
chargeEffect = ShootFx.lightningCharge;
|
||||
chargeBeginEffect = ShootFx.lancerLaserChargeBegin;
|
||||
heatColor = Color.RED;
|
||||
recoil = 3f;
|
||||
|
||||
@@ -184,7 +184,7 @@ public class TurretBullets {
|
||||
|
||||
@Override
|
||||
public void init(Bullet b) {
|
||||
new Lightning(b.team, hiteffect, damage, b.x, b.y, b.angle(), 40).add();
|
||||
new Lightning(b.team, hiteffect, damage, b.x, b.y, b.angle(), 30).add();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -188,6 +188,16 @@ public class ShootFx {
|
||||
Fill.circle(e.x, e.y, e.fin() * 2f);
|
||||
}),
|
||||
|
||||
lightningCharge = new Effect(38f, e -> {
|
||||
Draw.color(Palette.lancerLaser);
|
||||
|
||||
Angles.randLenVectors(e.id, 2, 1f + 20f * e.fout(), e.rotation, 120f, (x, y) -> {
|
||||
Shapes.tri(e.x + x, e.y + y, e.fslope()*3f + 1, e.fslope()*3f + 1, Mathf.atan2(x, y));
|
||||
});
|
||||
|
||||
Draw.reset();
|
||||
}),
|
||||
|
||||
lightningShoot= new Effect(12f, e -> {
|
||||
Draw.color(Color.WHITE, Palette.lancerLaser, e.fin());
|
||||
Lines.stroke(e.fout() * 1.2f + 0.5f);
|
||||
|
||||
Reference in New Issue
Block a user