Esempio n. 1
0
 static void RootConsoleRender(object sender, EventArgs e)
 {
     if (MainGraphicDisplay.IsDirty)
     {
         rootConsole.Clear();
         rootConsole = MainGraphicDisplay.CopyDisplayToRootConsole(rootConsole);
         rootConsole.Draw();
     }
 }
Esempio n. 2
0
        static void RunGame()
        {
            while (true)
            {
                MainGraphicDisplay.UpdateGameScreen();

                Entities.Monsters.Monster.UpdateMonsters(_currentLevel);
                Entities.Player.Player.UpdatePlayer(_currentLevel);

                if (_quit)
                {
                    SaveGame();
                    return;
                }
                _currentTime++;
            }
        }