Support for weather in rules / Sector weather

This commit is contained in:
Anuken
2020-05-08 21:51:17 -04:00
parent d7eb365446
commit 95a1d84eb9
30 changed files with 141 additions and 29 deletions

View File

@@ -10,7 +10,7 @@ import mindustry.graphics.Pal;
public class MissileBulletType extends BasicBulletType{
protected Color trailColor = Pal.missileYellowBack;
protected float weaveScale = 0f;
protected float weaveScale = 1f;
protected float weaveMag = -1f;
public MissileBulletType(float speed, float damage, String bulletSprite){
@@ -34,7 +34,7 @@ public class MissileBulletType extends BasicBulletType{
}
if(weaveMag > 0){
b.vel().rotate(Mathf.sin(Time.time() + b.id() * 442, weaveScale, weaveMag) * Time.delta());
b.vel().rotate(Mathf.sin(Time.time() + b.id() * 3, weaveScale, weaveMag) * Time.delta());
}
}
}

View File

@@ -5,6 +5,7 @@ import mindustry.gen.*;
@Component
abstract class DrawComp implements Posc{
abstract float clipSize();
void draw(){