/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(CurrentBackgroundC); // TODO: Add your drawing code here spriteBatch.Begin(); // Draws the Map CurrentMap.MapDraw(gameState, spriteBatch); // Draws the menus and splash screen menus.drawMenus(spriteBatch, gameState, instructionState, timer, winner); // Draws game screen if (gameState == GameState.Game) { // Draws the players p1.DrawP(spriteBatch, 1, font1, graphics); p2.DrawP(spriteBatch, 2, font1, graphics); // put all the above in a method in player class } spriteBatch.End(); base.Draw(gameTime); }