mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 16:37:38 +07:00
Fire light
This commit is contained in:
parent
9cd482d389
commit
3f27cebfb6
@ -855,6 +855,7 @@ public class Fx{
|
||||
if(Fire.regions[0] == null) return;
|
||||
alpha(e.fout());
|
||||
rect(Fire.regions[((int)(e.rotation + e.fin() * Fire.frames)) % Fire.frames], e.x, e.y);
|
||||
Drawf.light(e.x, e.y, 50f + Mathf.absin(5f, 5f), Pal.lightFlame, 0.6f * e.fout());
|
||||
}),
|
||||
|
||||
fire = new Effect(50f, e -> {
|
||||
|
@ -118,6 +118,8 @@ abstract class FireComp implements Timedc, Posc, Syncc, Drawc{
|
||||
Draw.z(Layer.effect);
|
||||
Draw.rect(regions[(int)animation], x, y);
|
||||
Draw.reset();
|
||||
|
||||
Drawf.light(x, y, 50f + Mathf.absin(5f, 5f), Pal.lightFlame, 0.6f * Mathf.clamp(warmup / warmupDuration));
|
||||
}
|
||||
|
||||
@Replace
|
||||
|
Loading…
Reference in New Issue
Block a user