Пример #1
0
        public WinScreen(Game game, Library.Colors.ColorName player)
            : base(Library.WinScreens.Background, game)
        {
            WinType    = TypeOfWin.TeamVictory;
            SplashTime = TimeSpan.FromSeconds(5);
            switch (player)
            {
            case Synced.Content.Library.Colors.ColorName.Blue:
                GameComponents.Add(new Sprite(Library.WinScreens.BlueTeam, new Vector2(ResolutionManager.GetCenterPointWidth, ResolutionManager.GetCenterPointHeight), Color.White, Static_Classes.DrawingHelper.DrawingLevel.Top, true, Game));
                break;

            case Synced.Content.Library.Colors.ColorName.Green:
                GameComponents.Add(new Sprite(Library.WinScreens.GreenTeam, new Vector2(ResolutionManager.GetCenterPointWidth, ResolutionManager.GetCenterPointHeight), Color.White, Static_Classes.DrawingHelper.DrawingLevel.Top, true, Game));
                break;

            case Synced.Content.Library.Colors.ColorName.Red:
                GameComponents.Add(new Sprite(Library.WinScreens.RedTeam, new Vector2(ResolutionManager.GetCenterPointWidth, ResolutionManager.GetCenterPointHeight), Color.White, Static_Classes.DrawingHelper.DrawingLevel.Top, true, Game));
                break;

            case Synced.Content.Library.Colors.ColorName.Yellow:
                GameComponents.Add(new Sprite(Library.WinScreens.YellowTeam, new Vector2(ResolutionManager.GetCenterPointWidth, ResolutionManager.GetCenterPointHeight), Color.White, Static_Classes.DrawingHelper.DrawingLevel.Top, true, Game));
                break;

            default:
                break;
            }
        }
Пример #2
0
 public WinScreen(Game game)
     : base(Library.WinScreens.Background, game)
 {
     WinType    = TypeOfWin.SuddenDeath;
     SplashTime = new TimeSpan(10000);
     GameComponents.Add(new Sprite(Library.WinScreens.SuddenTeam, new Vector2(ResolutionManager.GetCenterPointWidth, ResolutionManager.GetCenterPointHeight), Static_Classes.DrawingHelper.DrawingLevel.Top, Game));
 }