Пример #1
0
 public static void RefreshGame(Player player)
 {
     CurrentGame.Rooms[CurrentGame.RoomI].RemovePlayer();
     player.HP         = player.MaxHP;
     CurrentGame.Rooms = Room.GetRooms();
     GameEvent.FillEvents(CurrentGame);
     CurrentGame.Rooms[player.CheckPointRoom].AddPlayer(player, default, true);
Пример #2
0
        static void Main()
        {
            View.View.InitializeSets();
            var game = new TheGame()
            {
                Rooms              = Room.GetRooms(),
                State              = States.Menu,
                RoomI              = 0,
                MenuI              = 0,
                IsDialog           = false,
                IsEnding           = false,
                Resolutions        = new float[] { 0.91f, 1f, 1.27f, 0.85f },
                ResolutionsStrings = new string[]
                {
                    "1366x768",
                    "1440x840",
                    "1920x1080",
                    "720x1080"
                },
                CurrentResolution = 0,
                MaxResolution     = 3
            };

            GameEvent.FillEvents(game);
            MyForm.CurrentGame = game;
            game.Menues        = Model.Menu.GetMenues();
            var form = new MyForm(game);

            Control.Control.DeadList = new Stack <GameObject>();


            Application.Run(form);
        }