public override void Draw(GameTime gameTime) { Camera.Draw(spriteBatch); Cursor.Instance.Draw(gameTime, spriteBatch); if (!Parameter.ShouldChangeBGScale) { Background.Draw(gameTime, spriteBatch); } PopupHandler.Draw(gameTime, spriteBatch); if (!Parameter.ShouldChangeBGScale) { BackgroundFlipbookList.ForEach((x) => x.Draw(gameTime, spriteBatch)); } Foreground.Draw(gameTime, spriteBatch); WeatherHandler.Draw(gameTime, spriteBatch); lock (MobileList) { MobileList.ForEach((x) => x.Draw(gameTime, spriteBatch)); HUD.Draw(gameTime, spriteBatch); } MineList.ForEach((x) => x.Draw(gameTime, spriteBatch)); ThorSatellite.Draw(gameTime, spriteBatch); DeathAnimation.Draw(gameTime, spriteBatch); SpecialEffectHandler.Draw(gameTime, spriteBatch); TextBalloonHandler.Draw(spriteBatch); }
public void Draw() { BG.Draw(); Road.Draw(); Obstacles.ForEach(o => o.Draw()); Player.Draw(); Foreground.Draw(); if (Paused && !lost) { Util.DrawText("Press SPACE to jump!", new Vector2(150, 20)); } if (lost) { if (highScore) { Util.DrawText("NEW HIGH SCORE: " + score.ToString(), new Vector2(150, 20)); } else { Util.DrawText("Final score: " + score.ToString(), new Vector2(150, 20)); } } DrawScore(); }