/// <summary>
        /// Creates the moon boss. 
        /// </summary>
        /// <param name="id"></param>
        /// <param name="content">A Content manager</param>
        /// <param name="position"></param>
        public MoonBoss(uint id, ContentManager content, Vector2 position)
            : base(id)
        {
            Health = 600;
            this.position = position;
            CC = new MBCloseC(id, content, position);
            spritesheet = content.Load<Texture2D>("Spritesheets/MoonBoss.png");

            spriteBounds[(int)MBState.Full].X = 0;
            spriteBounds[(int)MBState.Full].Y = 0;
            spriteBounds[(int)MBState.Full].Width = 119;
            spriteBounds[(int)MBState.Full].Height = 140;

            spriteBounds[(int)MBState.Half].X = 0;
            spriteBounds[(int)MBState.Half].Y = 0;
            spriteBounds[(int)MBState.Half].Width = 119;
            spriteBounds[(int)MBState.Half].Height = 140;

            spriteBounds[(int)MBState.AD].X = 119;
            spriteBounds[(int)MBState.AD].Y = 0;
            spriteBounds[(int)MBState.AD].Width = 108;
            spriteBounds[(int)MBState.AD].Height = 140;

            state = MBState.Full;
        }
Beispiel #2
0
        /// <summary>
        /// Creates the moon boss.
        /// </summary>
        /// <param name="id"></param>
        /// <param name="content">A Content manager</param>
        /// <param name="position"></param>
        public MoonBoss(uint id, ContentManager content, Vector2 position)
            : base(id)
        {
            Health        = 600;
            this.position = position;
            CC            = new MBCloseC(id, content, position);
            spritesheet   = content.Load <Texture2D>("Spritesheets/MoonBoss.png");

            spriteBounds[(int)MBState.Full].X      = 0;
            spriteBounds[(int)MBState.Full].Y      = 0;
            spriteBounds[(int)MBState.Full].Width  = 119;
            spriteBounds[(int)MBState.Full].Height = 140;

            spriteBounds[(int)MBState.Half].X      = 0;
            spriteBounds[(int)MBState.Half].Y      = 0;
            spriteBounds[(int)MBState.Half].Width  = 119;
            spriteBounds[(int)MBState.Half].Height = 140;

            spriteBounds[(int)MBState.AD].X      = 119;
            spriteBounds[(int)MBState.AD].Y      = 0;
            spriteBounds[(int)MBState.AD].Width  = 108;
            spriteBounds[(int)MBState.AD].Height = 140;

            state = MBState.Full;
        }