/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> /// shipselectionscreen added by Matthew Baldock protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // All sprites get loaded in to here Assets.loadContent(GraphicsDevice); explosionEngine = new ExplosionEngine(Assets); List <Texture2D> textures = new List <Texture2D>(); textures.Add(Assets.guiRectangle); //textures.Add(Assets.missile); particleEngine = new ParticleEngine(textures, new Vector2(400, 240)); shipselectionScreen = new ShipSelectionScreen(this); scroll = new ScrollingBackground(Game1.Assets.background) { height = getScreenHeight(), width = getScreenWidth() }; scroll.setPosition(UIConstants.ORIGIN); IsMouseVisible = true; }
public void EnterShipSelectionScreen() { currentGameState = GameState.Select; shipselectionScreen = new ShipSelectionScreen(this); }