/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); float screenscale = graphicsManager.GraphicsDevice.Viewport.Width / 1280f; spriteScale = Matrix.CreateScale(screenscale, screenscale, 1); splashScreen = Content.Load <Texture2D>("Graphics\\mainMenu"); gameOver = Content.Load <Texture2D>("Graphics\\endMenu"); fullScreenRectangle = new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height); font = Content.Load <SpriteFont>("Graphics\\gameFont"); game.LoadContent(font); }
private void newGame() { game = new ShipGame(Content, Window); game.Initialize(); game.LoadContent(font); }