You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
663 B
C#

using Otter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlippyFlop {
class FlippyTrail : Entity {
public Image Image = Image.CreateRectangle(20, Color.Orange);
public FlippyTrail(float x, float y) : base(x, y) {
Graphic = Image;
Image.CenterOrigin();
Layer = 100;
Tween(Image, new { ScaleX = 0, ScaleY = 0 }, 30).OnComplete(() => RemoveSelf());
}
public override void Update() {
base.Update();
X -= 5;
}
}
}