public override void OnClick(double x, double y, int b) { FObject a = new ShapeObject(ColorResource.Black, new FCircle(30.0), 0, 0); a.SetCentre(x, y); a.AddAnims(new SimpleMove(30, -500)); a.AddAnims(new AccelerateMove(0, 800)); a.Collision += A_Collision; AddObject(a); }
public override void OnClick(double x, double y, int b) { FObject a; switch (b) { case 0: a = _x.Clone(); break; case 2: a = ImageObject.FromFile(@"C:\frice.png", 0, 0, 100, 100); break; default: a = new ShapeObject(ColorResource.DrakGray, new FCircle(50.0), 0, 0); break; } a.SetCentre(x, y); a.AddAnims(new SimpleMove(30, -500)); a.AddAnims(new AccelerateMove(0, 800)); AddObject(a); }