public override void Draw(GameTime gameTime) { graphicsDevice.Clear(Color.Red); Game1.levelManager.prevStatePlayLevel.Draw(gameTime); spriteBatch.Begin(); if (pauseTransparency != null) { pauseTransparency.Draw(spriteBatch); } HelperUtils.DrawStringCentered(spriteBatch, new Vector2(Game1.screenSize.X / 2, 75), Resources.FontMainTitle, 1f, pausedTitle, Color.White); HelperUtils.DrawStringCentered(spriteBatch, new Vector2(Game1.screenSize.X / 2, 135), Resources.FontMain, .65f, Levels.getLevelName(), Color.White); HelperUtils.DrawStringCentered(spriteBatch, new Vector2(Game1.screenSize.X / 2, 550), Resources.FontMain, .65f, "Press Any Keyboard Key to Resume", Color.White); buttonContinue.Draw(spriteBatch); buttonHowToPlay.Draw(spriteBatch); buttonExit.Draw(spriteBatch); // Draw Cursor Vector2 cursorOffset = new Vector2(Resources.Crosshair.Width, Resources.Crosshair.Height); spriteBatch.Draw(Resources.Crosshair, PlayerInput.mousePosition - (cursorOffset / 2), Color.White); spriteBatch.End(); }
public override void Draw(GameTime gameTime) { graphicsDevice.Clear(Resources.ColorBg); Game1.levelManager.prevStatePlayLevel.Draw(gameTime); spriteBatch.Begin(); if (transparency != null) { transparency.Draw(spriteBatch); } display.Draw(spriteBatch); // Draw Cursor Vector2 cursorOffset = new Vector2(Resources.Pointer.Width, Resources.Pointer.Height); spriteBatch.Draw(Resources.Pointer, PlayerInput.mousePosition - (cursorOffset / 2), Color.White); spriteBatch.End(); }