Exemplo n.º 1
0
        public static void StartMap(string mapName, int seed)
        {
            BeginSeed(seed);
            MapGroup map_group = new BasicMapGroup();
            map_group.Initialize();
            CurrentMapGroup = map_group;
            CurrentMapID = mapName;

            ResetGameState();
            Display.Screen.AddResult(new Results.Fade(Display.Screen.FadeType.FadeIn));
        }
Exemplo n.º 2
0
        public static void Init()
        {
            //clean map pointer
            CurrentMapGroup = null;

            //clean player
            Players = new Player[MAX_TEAM_SLOTS];
            for (int i = 0; i < MAX_TEAM_SLOTS; i++)
            {
                Players[i] = new Player();
            }
            Inventory = new int[MAX_INV_SLOTS];
            for (int i = 0; i < MAX_INV_SLOTS; i++) {
                Inventory[i] = -1;
            }

            PrevInput = new Input();
            CurrentInput = new Input();
            InputTime = RenderTime.Zero;
            replayInputs = new List<Command>();
            Rand = new Random();
            isLogging = true;
            currentCharIndex = -MAX_TEAM_SLOTS;
            CurrentMapID = "";
        }