/// <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(Color.TransparentBlack); spriteBatch.Begin(); //myPlayer.Draw(spriteBatch); switch (myState) { case State.LOAD: myLoad.Draw(spriteBatch); break; case State.MENU: myMenu.Draw(spriteBatch); break; case State.PREPARE: myPrepare.Draw(spriteBatch); break; case State.PLAY: myMapManager.Draw(spriteBatch); break; case State.UPGRADE: myUpgrade.Draw(spriteBatch); break; } spriteBatch.End(); base.Draw(gameTime); }