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