Unit tweaks

This commit is contained in:
Anuken
2020-04-25 22:48:25 -04:00
parent c875bb3f55
commit 8b7d75c5ba
8 changed files with 463 additions and 450 deletions
+2
View File
@@ -5,6 +5,7 @@ import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.math.*;
import arc.math.geom.*;
import mindustry.graphics.*;
public class Effect{
private static final EffectContainer container = new EffectContainer();
@@ -75,6 +76,7 @@ public class Effect{
public void render(int id, Color color, float life, float rotation, float x, float y, Object data){
container.set(id, color, life, lifetime, rotation, x, y, data);
Draw.z(ground ? Layer.debris : Layer.effect);
renderer.get(container);
Draw.reset();
}
@@ -16,7 +16,6 @@ abstract class EffectComp implements Posc, Drawc, Timedc, Rotc, Childc{
@Override
public void draw(){
Draw.z(Layer.effect);
effect.render(id(), color, time(), rotation(), x(), y(), data);
}