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

                // TODO: Swap the timer around.

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

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