public BossFightScreen(PlayScreen playScreen, int bossLevel)
 {
     this.playScreen = playScreen;
     immunityBar = playScreen.bar;
     player = playScreen.player;
     this.bossLevel = bossLevel;
 }
        public override void Initialize()
        {
            screenWidth = ScreenManager.GraphicsDevice.Viewport.Width;
            screenHeight = ScreenManager.GraphicsDevice.Viewport.Height;

            colorDataList = new List<byte[]>();
            player = new Player();
            generator = new ItemsGenerator();
            current = generator.GenerateMore();
            bgLayer1 = new ParallaxingBackground();
            bgLayer2 = new ParallaxingBackground();
            bgLayer3 = new ParallaxingBackground();
            bar = new Bar(100, 20, 15, 270, 30);
            score = new Score(870, 10, Color.Peru);
            currentSprite = new List<Sprite>();
            items = new List<Texture2D>();
            songs = new Song[2];
            soundEffects = new SoundEffect[10];

            updateImmunityCounter = 0;
            alertTimer = 0;
            playQueue = 1;
            displayAlert = false;
            enablePause = true;

            Constants.ResetFlags();
            player.Initialize();
            base.Initialize();
        }
 public DumbbellScreen(PlayScreen playScreen)
 {
     this.playScreen = playScreen;
     bar = playScreen.bar;
 }
 public TreadmillScreen(PlayScreen playScreen)
 {
     this.playScreen = playScreen;
     bar = playScreen.bar;
 }
 public override void Initialize()
 {
     showAvatar = true;
     virusBar = new Bar(100, 950, 15, 270, 30);
     rightSwordBounds = new Rectangle(0, 400, 80, 80);
     leftSwordBounds = new Rectangle(1350, 400, 80, 80);
     shields = new Texture2D[4];
     shieldBounds = new Rectangle[4];
     shieldBounds[0] = new Rectangle(590, -80, 80, 80);
     shieldBounds[2] = new Rectangle(590, 720, 80, 80);
     shieldBounds[1] = new Rectangle(-90, 500, 80, 80);
     shieldBounds[3] = new Rectangle(1304, 500, 80, 80);
     cam = new Camera2D(ScreenManager);
     cam.Initialize();
     cam.Focus = new Vector2(640, 360);
     cam.Position = new Vector2(500.0f, 200.0f);
     button = new Button();
     hand = new HandCursor();
     hand.Initialize(ScreenManager.Kinect);
     button.Initialize("Buttons/OK", this.ScreenManager.Kinect, new Vector2(820, 100));
     button.Clicked += new Button.ClickedEventHandler(button_Clicked);
     base.Initialize();
 }