Beispiel #1
0
        private static void attackpellet(int time, int endtime, float xpos, float ypos)
        {
            var pellet = new AnimationEvent("sb/pel.png", 2, 100);

            storyboard.AddSpriteEvent(pellet);
            pellet.Scale(time, 0.4f);
            pellet.Fade(time, 1);
            pellet.Move(time, endtime, Out, new Position(xpos, ypos), new Position(320, 335));
            pellet.Fade(endtime, 0);
        }