Пример #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent()
        {
            // Set up the background
            titleTexture = game.Content.Load <Texture2D>("Spritesheets/charSelectBackground");

            titleImage         = new ImageSprite(titleTexture, viewport.Width / 2, viewport.Height / 2, Color.White);
            titleImage.Visible = true;
            titleImage.Scale   = (float)(new Vector2(viewport.Width, viewport.Height).Length()) / (float)(new Vector2(titleTexture.Width, titleTexture.Height).Length());

            // Set the control images
            buttonTexture       = game.Content.Load <Texture2D>("Spritesheets/charSelectControls1");
            buttonPos           = new Vector2(center.X, center.Y - viewport.Height * 0.365f);
            controlsImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            controlsImage.Scale = 1;

            // Initialize the sprite font
            spriteFont = game.Content.Load <SpriteFont>("SpriteFonts/Pescadero");


            playerOne = new CharSelectPlayer(new ImageSprite(game.Content.Load <Texture2D>("Spritesheets/charSelectPlayerOneCursor"), (int)buttonPos.X,
                                                             (int)buttonPos.Y, selected), true, PlayerIndex.One);
            playerTwo = new CharSelectPlayer(new ImageSprite(game.Content.Load <Texture2D>("Spritesheets/charSelectPlayerTwoCursor"), (int)buttonPos.X,
                                                             (int)buttonPos.Y, unselected), true, PlayerIndex.Two);
            playerThree = new CharSelectPlayer(new ImageSprite(game.Content.Load <Texture2D>("Spritesheets/charSelectPlayerThreeCursor"), (int)buttonPos.X,
                                                               (int)buttonPos.Y, unselected), true, PlayerIndex.Three);
            playerFour = new CharSelectPlayer(new ImageSprite(game.Content.Load <Texture2D>("Spritesheets/charSelectPlayerFourCursor"), (int)buttonPos.X,
                                                              (int)buttonPos.Y, unselected), true, PlayerIndex.Four);
            players.Add(playerOne);
            currentPlayer = playerOne;
            // Initialized the sound effect
            soundEffect = game.Content.Load <SoundEffect>("Audio/BClick_Menu");
        }
Пример #2
0
 /// <summary>
 /// Constructor for this class
 /// </summary>
 /// <param name="image">The ImageSprite for the cursor</param>
 /// <param name="connected">Whether or not this player is initially connected</param>
 /// <param name="playerIndex">This player's player index</param>
 public CharSelectPlayer(ImageSprite image, bool connected, PlayerIndex playerIndex)
 {
     cursor = image;
     this.connected = connected;
     xPos = 0;
     yPos = 0;
     timer = 0;
     this.playerIndex = playerIndex;
 }
 /// <summary>
 /// Constructor for this class
 /// </summary>
 /// <param name="image">The ImageSprite for the cursor</param>
 /// <param name="connected">Whether or not this player is initially connected</param>
 /// <param name="playerIndex">This player's player index</param>
 public CharSelectPlayer(ImageSprite image, bool connected, PlayerIndex playerIndex)
 {
     cursor           = image;
     this.connected   = connected;
     xPos             = 0;
     yPos             = 0;
     timer            = 0;
     this.playerIndex = playerIndex;
 }
Пример #4
0
 /// <summary>
 /// Constructor for this class
 /// </summary>
 /// <param name="image">The image of this preview's character</param>
 /// <param name="pos">The position of this preview</param>
 /// <param name="font">The font for the text sprites</param>
 /// <param name="charType">The character type of this preview</param>
 /// <param name="level">The level of this preview's character</param>
 /// <param name="color">The color of this game save (namely bright or dimmed using the alpha value)</param>
 /// <param name="fileName">The filename for the game save this preview represents</param>
 public CharSelectPreview(Texture2D image, Vector2 pos, SpriteFont font, String charType, String level, Color color, String fileName)
 {
     this.fileName = fileName;
     this.image = new ImageSprite(image, (int)(pos.X - image.Width / 2), (int)pos.Y, color);
     this.charType = new TextSprite(font, charType, new Vector2(pos.X + 25, pos.Y - 8), color);
     this.level = new TextSprite(font, level, new Vector2(pos.X + 25, pos.Y + 12), color);
     this.position = pos;
     this.color = color;
     this.newGame = false;
 }
 /// <summary>
 /// Constructor for this class
 /// </summary>
 /// <param name="image">The image of this preview's character</param>
 /// <param name="pos">The position of this preview</param>
 /// <param name="font">The font for the text sprites</param>
 /// <param name="charType">The character type of this preview</param>
 /// <param name="level">The level of this preview's character</param>
 /// <param name="color">The color of this game save (namely bright or dimmed using the alpha value)</param>
 /// <param name="fileName">The filename for the game save this preview represents</param>
 public CharSelectPreview(Texture2D image, Vector2 pos, SpriteFont font, String charType, String level, Color color, String fileName)
 {
     this.fileName = fileName;
     this.image    = new ImageSprite(image, (int)(pos.X - image.Width / 2), (int)pos.Y, color);
     this.charType = new TextSprite(font, charType, new Vector2(pos.X + 25, pos.Y - 8), color);
     this.level    = new TextSprite(font, level, new Vector2(pos.X + 25, pos.Y + 12), color);
     this.position = pos;
     this.color    = color;
     this.newGame  = false;
 }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent()
        {
            // Set up the background
            titleTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectBackground");

            titleImage = new ImageSprite(titleTexture, viewport.Width / 2, viewport.Height / 2, Color.White);
            titleImage.Visible = true;
            titleImage.Scale = (float)(new Vector2(viewport.Width, viewport.Height).Length()) / (float)(new Vector2(titleTexture.Width, titleTexture.Height).Length());

            // Set the control images
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectControls1");
            buttonPos = new Vector2(center.X, center.Y - viewport.Height * 0.365f);
            controlsImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            controlsImage.Scale = 1;

            // Initialize the sprite font
            spriteFont = game.Content.Load<SpriteFont>("SpriteFonts/Pescadero");

            playerOne = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectPlayerOneCursor"), (int)buttonPos.X,
                                            (int)buttonPos.Y, selected), true, PlayerIndex.One);
            playerTwo = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectPlayerTwoCursor"), (int)buttonPos.X,
                                            (int)buttonPos.Y, unselected), true, PlayerIndex.Two);
            playerThree = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectPlayerThreeCursor"), (int)buttonPos.X,
                                            (int)buttonPos.Y, unselected), true, PlayerIndex.Three);
            playerFour = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectPlayerFourCursor"), (int)buttonPos.X,
                                            (int)buttonPos.Y, unselected), true, PlayerIndex.Four);
            players.Add(playerOne);
            currentPlayer = playerOne;
            // Initialized the sound effect
            soundEffect = game.Content.Load<SoundEffect>("Audio/BClick_Menu");
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent(CharSelectPlayer player)
        {
            // Set up the background
            titleTexture = game.Content.Load <Texture2D>("Spritesheets/charSelectBackground");

            titleImage         = new ImageSprite(titleTexture, viewport.Width / 2, viewport.Height / 2, Color.White);
            titleImage.Visible = true;
            titleImage.Scale   = (float)(new Vector2(viewport.Width, viewport.Height).Length()) / (float)(new Vector2(titleTexture.Width, titleTexture.Height).Length());

            // Set the control images
            buttonTexture       = game.Content.Load <Texture2D>("Spritesheets/charSelectControls2");
            buttonPos           = new Vector2(center.X, center.Y - viewport.Height * 0.365f);
            controlsImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            controlsImage.Scale = 1;

            // Initialize the sprite font
            spriteFont = game.Content.Load <SpriteFont>("SpriteFonts/Pescadero");

            // Initialize the character buttons and the text for each button and the character's aggregate
            // The Cultist Character
            buttonTexture     = game.Content.Load <Texture2D>("Spritesheets/charSelectCultist");
            buttonPos         = new Vector2(center.X - viewport.Width / 4, center.Y - viewport.Height / 6);
            buttonImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 0]     = buttonImage;

            buttonTextOffset  = new Vector2(0, buttonImage.Image.Height);
            buttonText        = new TextSprite(spriteFont, "Cultist", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 0] = buttonText;

            buttonAggregates[0, 0] = Aggregate.CultistPlayer;

            // The Earthian Character
            buttonTexture     = game.Content.Load <Texture2D>("Spritesheets/charSelectEarthian");
            buttonPos         = new Vector2(center.X, center.Y - viewport.Height / 6);
            buttonImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 1]     = buttonImage;

            buttonText        = new TextSprite(spriteFont, "Earthian", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 1] = buttonText;

            buttonAggregates[0, 1] = Aggregate.EarthianPlayer;

            // The Cyborg Character
            buttonTexture     = game.Content.Load <Texture2D>("Spritesheets/charSelectCyborg");
            buttonPos         = new Vector2(center.X + viewport.Width / 4, center.Y - viewport.Height / 6);
            buttonImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 2]     = buttonImage;

            buttonText        = new TextSprite(spriteFont, "Cyborg", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 2] = buttonText;

            buttonAggregates[0, 2] = Aggregate.CyborgPlayer;

            // The Gargranian Character
            buttonTexture     = game.Content.Load <Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos         = new Vector2(center.X - viewport.Width / 4, center.Y + viewport.Height / 6);
            buttonImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 0]     = buttonImage;

            buttonText        = new TextSprite(spriteFont, "Gargranian", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 0] = buttonText;

            buttonAggregates[1, 0] = Aggregate.GargranianPlayer;

            // The Space Pirate Character
            buttonTexture     = game.Content.Load <Texture2D>("Spritesheets/charSelectSpacePirate");
            buttonPos         = new Vector2(center.X, center.Y + viewport.Height / 6);
            buttonImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 1]     = buttonImage;

            buttonText        = new TextSprite(spriteFont, "Space Pirate", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 1] = buttonText;

            buttonAggregates[1, 1] = Aggregate.SpacePiratePlayer;

            // The Zombie Character
            buttonTexture     = game.Content.Load <Texture2D>("Spritesheets/charSelectZombie");
            buttonPos         = new Vector2(center.X + viewport.Width / 4, center.Y + viewport.Height / 6);
            buttonImage       = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 2]     = buttonImage;


            buttonText        = new TextSprite(spriteFont, "Zombie", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 2] = buttonText;

            buttonAggregates[1, 2] = Aggregate.ZombiePlayer;

            currentPlayer = player;
            currentPlayer.cursor.Position = buttons[0, 0].Position;

            // Initialized the sound effect
            soundEffect = game.Content.Load <SoundEffect>("Audio/BClick_Menu");
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent(CharSelectPlayer player)
        {
            // Set up the background
            titleTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectBackground");

            titleImage = new ImageSprite(titleTexture, viewport.Width / 2, viewport.Height / 2, Color.White);
            titleImage.Visible = true;
            titleImage.Scale = (float)(new Vector2(viewport.Width, viewport.Height).Length()) / (float)(new Vector2(titleTexture.Width, titleTexture.Height).Length());

            // Set the control images
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectControls2");
            buttonPos = new Vector2(center.X, center.Y - viewport.Height * 0.365f);
            controlsImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            controlsImage.Scale = 1;

            // Initialize the sprite font
            spriteFont = game.Content.Load<SpriteFont>("SpriteFonts/Pescadero");

            // Initialize the character buttons and the text for each button and the character's aggregate
            // The Cultist Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectCultist");
            buttonPos = new Vector2(center.X - viewport.Width / 4, center.Y - viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 0] = buttonImage;

            buttonTextOffset = new Vector2(0, buttonImage.Image.Height);
            buttonText = new TextSprite(spriteFont, "Cultist", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 0] = buttonText;

            buttonAggregates[0, 0] = Aggregate.CultistPlayer;

            // The Earthian Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectEarthian");
            buttonPos = new Vector2(center.X, center.Y - viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 1] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Earthian", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 1] = buttonText;

            buttonAggregates[0, 1] = Aggregate.EarthianPlayer;

            // The Cyborg Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectCyborg");
            buttonPos = new Vector2(center.X + viewport.Width / 4, center.Y - viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 2] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Cyborg", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 2] = buttonText;

            buttonAggregates[0, 2] = Aggregate.CyborgPlayer;

            // The Gargranian Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectGargranian");
            buttonPos = new Vector2(center.X - viewport.Width / 4, center.Y + viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 0] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Gargranian", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 0] = buttonText;

            buttonAggregates[1, 0] = Aggregate.GargranianPlayer;

            // The Space Pirate Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectSpacePirate");
            buttonPos = new Vector2(center.X, center.Y + viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 1] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Space Pirate", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 1] = buttonText;

            buttonAggregates[1, 1] = Aggregate.SpacePiratePlayer;

            // The Zombie Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/CharSelect/charSelectZombie");
            buttonPos = new Vector2(center.X + viewport.Width / 4, center.Y + viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 2] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Zombie", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 2] = buttonText;

            buttonAggregates[1, 2] = Aggregate.ZombiePlayer;

            currentPlayer = player;
            currentPlayer.Cursor.Position = buttons[0, 0].Position;

            // Initialized the sound effect
            soundEffect = game.Content.Load<SoundEffect>("Audio/BClick_Menu");
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public void LoadContent()
        {
            // Set up the background
            titleTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectBackground");

            titleImage = new ImageSprite(titleTexture, viewport.Width / 2, viewport.Height / 2, Color.White);
            titleImage.Visible = true;
            titleImage.Scale = (float)(new Vector2(viewport.Width, viewport.Height).Length()) / (float)(new Vector2(titleTexture.Width, titleTexture.Height).Length());

            // Initialize the sprite font
            spriteFont = game.Content.Load<SpriteFont>("SpriteFonts/Pescadero");

            // Initialize the character buttons and the text for each button and the character's aggregate
            // The Cultist Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos = new Vector2(center.X - viewport.Width / 4, center.Y - viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 0] = buttonImage;

            buttonTextOffset = new Vector2(0, buttonImage.Image.Height);
            buttonText = new TextSprite(spriteFont, "Cultist", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 0] = buttonText;

            buttonAggregates[0, 0] = Aggregate.CultistPlayer;

            // The Earthian Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos = new Vector2(center.X, center.Y - viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 1] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Earthian", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 1] = buttonText;

            buttonAggregates[0, 1] = Aggregate.EarthianPlayer;

            // The Cyborg Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos = new Vector2(center.X + viewport.Width / 4, center.Y - viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[0, 2] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Cyborg", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[0, 2] = buttonText;

            buttonAggregates[0, 2] = Aggregate.CyborgPlayer;

            // The Gargranian Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos = new Vector2(center.X - viewport.Width / 4, center.Y + viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 0] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Gargranian", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 0] = buttonText;

            buttonAggregates[1, 0] = Aggregate.GargranianPlayer;

            // The Space Pirate Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos = new Vector2(center.X, center.Y + viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 1] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Space Pirate", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 1] = buttonText;

            buttonAggregates[1, 1] = Aggregate.SpacePiratePlayer;

            // The Zombie Character
            buttonTexture = game.Content.Load<Texture2D>("Spritesheets/charSelectGargranian");
            buttonPos = new Vector2(center.X + viewport.Width / 4, center.Y + viewport.Height / 6);
            buttonImage = new ImageSprite(buttonTexture, (int)buttonPos.X, (int)buttonPos.Y, Color.White * (1f / 1));
            buttonImage.Scale = 1;
            buttons[1, 2] = buttonImage;

            buttonText = new TextSprite(spriteFont, "Zombie", buttonPos + buttonTextOffset, Color.White);
            buttonTexts[1, 2] = buttonText;

            buttonAggregates[1, 2] = Aggregate.ZombiePlayer;

            playerOne = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/charSelectPlayerOneCursor"), (int)buttons[0, 0].Position.X,
                                            (int)buttons[0, 0].Position.Y, Color.White), true, PlayerIndex.One);
            playerTwo = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/charSelectPlayerTwoCursor"), (int)buttons[0, 0].Position.X,
                                            (int)buttons[0, 0].Position.Y, Color.White), false, PlayerIndex.Two);
            playerThree = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/charSelectPlayerThreeCursor"), (int)buttons[0, 0].Position.X,
                                            (int)buttons[0, 0].Position.Y, Color.White), false, PlayerIndex.Three);
            playerFour = new CharSelectPlayer(new ImageSprite(game.Content.Load<Texture2D>("Spritesheets/charSelectPlayerFourCursor"), (int)buttons[0, 0].Position.X,
                                            (int)buttons[0, 0].Position.Y, Color.White), false, PlayerIndex.Four);
            players.Add(playerOne);
            players.Add(playerTwo);
            players.Add(playerThree);
            players.Add(playerFour);
            // Initialized the sound effect
            soundEffect = game.Content.Load<SoundEffect>("Audio/BClick_Menu");
        }