public void Draw() { Level.Draw(); entityHandler.Draw(cameraHandler.Viewport); //draw points Rectangle scoreRect = SwinGame.CreateRectangle(0, 0, SwinGame.ScreenWidth(), SwinGame.ScreenHeight() * 0.1f); SwinGame.DrawText(scoresheet.FetchTeamScore(Team.Team1).ToString(), Color.Yellow, Color.Transparent, "MenuTitle", FontAlignment.AlignCenter, scoreRect); }
public static void Draw(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice) { graphicsDevice.Clear(new Color(255, 228, 194)); EntityHandler.Draw(spriteBatch, graphicsDevice); if (gamestate == "startScreen") { startScreen.Draw(spriteBatch, graphicsDevice); } else if (gamestate == "help") { helpScreen.Draw(spriteBatch, graphicsDevice); } cursorHandler.Draw(spriteBatch, graphicsDevice); }
public static void Draw(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice) { graphicsDevice.Clear(Color.CornflowerBlue); EntityHandler.Draw(spriteBatch, graphicsDevice); if (gamestate == "startScreen") { startScreen.Draw(spriteBatch, graphicsDevice); } else if (gamestate == "help") { helpScreen.Draw(spriteBatch, graphicsDevice); } cursorHandler.Draw(spriteBatch, graphicsDevice); }
public void Draw() { menuScene.Draw(); entityHandler.Draw(menuScene.PlayArea); currMenu.Draw(); }