Example #1
0
 public FadeScreen(int startAlpha, int endAlpha, float time)
 {
     this.startAlpha = startAlpha;
     this.endAlpha   = endAlpha;
     timer           = new SteppingTimer(time, UpdateAlpha);
     Add(timer);
 }
Example #2
0
 public Pulse(Entity start, Entity end)
 {
     Depth = 0.78f;
     SetTexture("pulse");
     move = new SteppingTimer(1, x => { LocalPosition = Vector2.Lerp(start.Position, end.Position, x); });
     Add(move);
 }