/// <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(Microsoft.Xna.Framework.Color.CornflowerBlue); // TODO: Add your drawing code here spriteBatch.Begin(); game_map.Draw(spriteBatch); vandal.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
/// <summary> /// Funkcja XNA wywyo³ywana do odrysowania obiektów /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { if (isStarted) { if (!IsPaused) { GraphicsDevice.Clear(Microsoft.Xna.Framework.Color.Black); spriteBatch.Begin(); game_map.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); } } }