Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public void Draw()
 {
     menuScene.Draw();
     entityHandler.Draw(menuScene.PlayArea);
     currMenu.Draw();
 }