Fire light

This commit is contained in:
Anuken 2021-06-03 16:09:32 -04:00
parent 9cd482d389
commit 3f27cebfb6
2 changed files with 3 additions and 0 deletions

View File

@ -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 -> {

View File

@ -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