Beispiel #1
0
        public AlexEnchanter(Rectangle rectangle)
            : base(rectangle)
        {
            speed            = new Vector2(500, 500);
            warpOutAnimation = new Animation(warpAnimationDuration, WarpTextures);
            warpInAnimation  = new Animation(warpAnimationDuration, WarpTextures[9], WarpTextures[8],
                                             WarpTextures[7], WarpTextures[6], WarpTextures[5], WarpTextures[4], WarpTextures[3],
                                             WarpTextures[2], WarpTextures[1], WarpTextures[0]);
            castAnimation = new Animation(castAnimationDuration, CastTextures[0], CastTextures[1],
                                          CastTextures[2], CastTextures[3], CastTextures[4], CastTextures[5], CastTextures[6],
                                          CastTextures[7], CastTextures[8], CastTextures[9], CastTextures[8], CastTextures[7],
                                          CastTextures[6], CastTextures[5], CastTextures[4], CastTextures[3], CastTextures[2],
                                          CastTextures[1], CastTextures[0]);
            PeanutShield = new AnimatedObject(new Rectangle(0, 0, 0, 0), new Animation(-1, 45, PeanutShieldTextures[0], PeanutShieldTextures[1],
                                                                                       PeanutShieldTextures[2], PeanutShieldTextures[3], PeanutShieldTextures[2],
                                                                                       PeanutShieldTextures[1], PeanutShieldTextures[0]));
            createWarpLocations();
            magicStaff         = new BaseObject(new Rectangle(0, 0, magicStaffWidth, magicStaffHeight));
            magicStaff.Texture = MagicStaffTexture;

            HP = MaxHP = DEFAULTMAXHP;
        }
Beispiel #2
0
        public AlexEnchanter(Rectangle rectangle)
            : base(rectangle)
        {
            speed = new Vector2(500, 500);
            warpOutAnimation = new Animation(warpAnimationDuration, WarpTextures);
            warpInAnimation = new Animation(warpAnimationDuration, WarpTextures[9], WarpTextures[8],
                WarpTextures[7], WarpTextures[6], WarpTextures[5], WarpTextures[4], WarpTextures[3],
                WarpTextures[2], WarpTextures[1], WarpTextures[0]);
            castAnimation = new Animation(castAnimationDuration, CastTextures[0],  CastTextures[1],
                CastTextures[2], CastTextures[3], CastTextures[4], CastTextures[5], CastTextures[6],
                CastTextures[7], CastTextures[8], CastTextures[9], CastTextures[8], CastTextures[7],
                CastTextures[6], CastTextures[5], CastTextures[4], CastTextures[3], CastTextures[2],
                CastTextures[1], CastTextures[0]);
            PeanutShield = new AnimatedObject(new Rectangle(0, 0, 0, 0), new Animation(-1, 45, PeanutShieldTextures[0], PeanutShieldTextures[1],
                PeanutShieldTextures[2], PeanutShieldTextures[3], PeanutShieldTextures[2],
                PeanutShieldTextures[1], PeanutShieldTextures[0]));
            createWarpLocations();
            magicStaff = new BaseObject(new Rectangle(0, 0, magicStaffWidth, magicStaffHeight));
            magicStaff.Texture = MagicStaffTexture;

            HP = MaxHP = DEFAULTMAXHP;
        }