This commit is contained in:
Anuken
2020-04-23 11:01:14 -04:00
parent 989ee895e8
commit 71e8c088a6
4 changed files with 12 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
package mindustry.entities.def;
import arc.graphics.g2d.*;
import arc.math.*;
import arc.util.*;
import mindustry.annotations.Annotations.*;
@@ -109,6 +110,8 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
@Override
public void draw(){
Draw.z(Layer.bullet);
type.draw(this);
//TODO refactor
renderer.lights.add(x(), y(), 16f, Pal.powerLight, 0.3f);

View File

@@ -1,9 +1,11 @@
package mindustry.entities.def;
import arc.graphics.*;
import arc.graphics.g2d.*;
import mindustry.annotations.Annotations.*;
import mindustry.entities.*;
import mindustry.gen.*;
import mindustry.graphics.*;
@EntityDef(value = {Effectc.class, Childc.class}, pooled = true)
@Component
@@ -14,6 +16,7 @@ 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);
}