Ejemplo n.º 1
0
        static BabySprite()
        {
            path.AddPath(new VerticalPath().Initialize(20, 1, 100));

            path.AddPath(new EllipticalPath().Initialize(0, 90, 50, 50, -1, 1, 50));

            path.AddPath(new HorizontalPath().Initialize(100, 1, 100));

            path.AddPath(new EllipticalPath().Initialize(90, -180, 50, 50, 1, 1, 100));

            directionThresold1 = path.MaximumFrame - 50; // correspond à la moitié des frames de l'ellipticalPath

            path.AddPath(new HorizontalPath().Initialize(100, -1, 100));
            path.AddPath(new EllipticalPath().Initialize(90, 180, 50, 50, 1, 1, 100));

            directionThresold2 = path.MaximumFrame - 50; // correspond à la moitié des frames de l'ellipticalPath

            path.AddPath(new HorizontalPath().Initialize(100, 1, 100));
            path.AddPath(new EllipticalPath().Initialize(90, -180, 50, 50, 1, 1, 100));

            directionThresold3 = path.MaximumFrame - 50; // correspond à la moitié des frames de l'ellipticalPath

            path.AddPath(new HorizontalPath().Initialize(100, -1, 100));
            path.AddPath(new EllipticalPath().Initialize(90, 180, 50, 50, 1, 1, 100));

            directionThresold4 = path.MaximumFrame - 50; // correspond à la moitié des frames de l'ellipticalPath
        }
Ejemplo n.º 2
0
        static FlySprite()
        {
            path.AddPath(new HorizontalPath().Initialize(150, 1, 75));

            frameThresold1 = path.MaximumFrame + (75 / 2);

            path.AddPath(new EllipticalPath().Initialize(180, 180, 100, 100, 1, 1, 75));

            path.AddPath(new VerticalPath().Initialize(200, 1, 100));
        }
Ejemplo n.º 3
0
        static DuckSprite()
        {
            path.AddPath(new HorizontalPath().Initialize(100, -1, 100));

            path.AddPath(new EllipticalPath().Initialize(0, 180, 25, 25, 1, 1, 25));
            path.AddPath(new EllipticalPath().Initialize(0, 180, 25, 25, 1, -1, 25));

            path.AddPath(new HorizontalPath().Initialize(100, -1, 100));

            path.AddPath(new EllipticalPath().Initialize(0, 180, 25, 25, 1, 1, 25));
            path.AddPath(new EllipticalPath().Initialize(0, 180, 25, 25, 1, -1, 25));

            path.AddPath(new HorizontalPath().Initialize(100, -1, 100));
            path.AddPath(new EllipticalPath().Initialize(0, 180, 25, 25, 1, 1, 25));

            path.AddPath(new VerticalPath().Initialize(300, -1, 300));
        }