public void Run()
        {
            timer     = new FpsTimer();
            timer.Fps = 60;
            DoGC();
            while (SDLFrame.PollEvent() == YanesdkResult.NoError)
            {
                timer.WaitFrame();
                audioDevice.Update();
                inputDevice.Update();
                bool gc = Tick();
                if (currentState == State.Exit)
                {
                    break;
                }
                if (!timer.ToBeSkip)
                {
                    Draw();
                }
                if (gc)
                {
                    DoGC();
                }
            }

            settings.NumUnlockedStages = numUnlockedStages;
            settings.Save("settings.cfg");

            if (log != null)
            {
                log.Close();
            }

            SDLFrame.Quit();
        }
Exemple #2
0
 public void Dispose()
 {
     SDLFrame.Quit();
     Console.WriteLine("終了しました。");
 }