Ejemplo n.º 1
0
            /// <summary>
            /// Initializes animation components and resets variables.
            /// </summary>
            public static void Initialize()
            {
                position  = new Vector2(250, 30);
                animation = new ComplexAnimation()
                {
                    Scale = 4
                };
                ComplexAnimData normal = new ComplexAnimData(1, GameWorld.UiSpriteSheet, new Rectangle(), 112, 16, 16, 125, 8, true);

                animation.AddAnimationData("normal", normal);
                animation.AddToQueue("normal");
                fontBig   = ContentHelper.LoadFont("Fonts/x32");
                fontSmall = ContentHelper.LoadFont("Fonts/x16");
            }
Ejemplo n.º 2
0
            /// <summary>
            /// Initializes animation components and resets variables.
            /// </summary>
            public static void Initialize()
            {
                position  = new Vector2(30, 30);
                animation = new ComplexAnimation()
                {
                    Scale = 4
                };
                ComplexAnimData normal = new ComplexAnimData(1, GameWorld.UiSpriteSheet, new Rectangle(), 80, 16, 16, 125, 4, true);
                ComplexAnimData dead   = new ComplexAnimData(1000, GameWorld.UiSpriteSheet, new Rectangle(), 96, 16, 16, 125, 4, true);
                ComplexAnimData poison = new ComplexAnimData(100, GameWorld.UiSpriteSheet, new Rectangle(), 64, 16, 16, 125, 4, true);

                animation.AddAnimationData("normal", normal);
                animation.AddAnimationData("dead", dead);
                animation.AddAnimationData("poison", poison);
                animation.AddToQueue("normal");
                fontBig   = ContentHelper.LoadFont("Fonts/x32");
                fontSmall = ContentHelper.LoadFont("Fonts/x16");
            }