/// <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(new Color(20, 20, 40)); GraphicsDevice.Clear(Color.Black); // TODO: Add your drawing code here // Draw the sprite. spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); myGameBackground.Draw(spriteBatch, gameTime); if (!OnMenu) { myPlayer.Draw(spriteBatch, gameTime); myLevel.Draw(spriteBatch, gameTime); } spriteBatch.End(); base.Draw(gameTime); }
public override void Draw() { _currentLevel.Draw(); _ball.Draw(); }