protected override void LoadContent() { //load background image backgroundTexture = content.Load<Texture2D>("Images/versusmode_background"); background = new ScreenBackground(theGame, backgroundTexture); //add the grids gridP1 = new Grid(theGame, 390, 520, 65, false); gridP1.DrawOrder = 1; gridP2 = new Grid(theGame, 390, 520, 65, true); gridP2.DrawOrder = 1; //add the selection boxes selectionBoxP1 = new SelectionBox(theGame, false); selectionBoxP1.DrawOrder = 2; theGame.Components.Add(selectionBoxP1); selectionBoxP2 = new SelectionBox(theGame, true); selectionBoxP2.DrawOrder = 2; theGame.Components.Add(selectionBoxP2); base.LoadContent(); }
protected override void LoadContent() { //load background image backgroundTexture = content.Load<Texture2D>("Images/endlessmode_background"); background = new ScreenBackground(theGame, backgroundTexture); //add the grid grid = new Grid(theGame, 390, 520, 65, false); grid.DrawOrder = 1; //add the selection box selectionBox = new SelectionBox(theGame, false); selectionBox.DrawOrder = 2; theGame.Components.Add(selectionBox); //load statistics font statisticsFont = content.Load<SpriteFont>("Fonts/statistics"); base.LoadContent(); }