Effects, collisions, method overrides

This commit is contained in:
Anuken
2020-02-08 13:14:23 -05:00
parent 659bfea8cf
commit f46be924b9
20 changed files with 217 additions and 53 deletions

View File

@@ -1082,7 +1082,7 @@ public class Fx{
//TODO fix false in constructor
ripple = new Effect(30, e -> {
color(Tmp.c1.set(e.color).mul(1.2f));
color(Tmp.c1.set(e.color).mul(1.5f));
stroke(e.fout() + 0.4f);
Lines.circle(e.x, e.y, 2f + e.fin() * 4f);
}).ground(),

View File

@@ -1,6 +1,7 @@
package mindustry.content;
import arc.*;
import arc.graphics.*;
import arc.math.Mathf;
import mindustry.ctype.ContentList;
import mindustry.game.EventType.*;
@@ -40,6 +41,7 @@ public class StatusEffects implements ContentList{
}};
wet = new StatusEffect("wet"){{
color = Color.royal;
speedMultiplier = 0.9f;
effect = Fx.wet;