예제 #1
0
        public static void ExitButton_MouseDown(object sender, EventArgs e)
        {
            if (EngineMessageBox.Visible)
            {
                return;
            }

            EngineMultimedia.Play(EngineSoundEnum.Click);

            EngineCore.Exit();
        }
        public void OnApplicationIdle(object sender, EventArgs e)
        {
            while (this.AppStillIdle)
            {
                EngineCore.Update();
                EngineCore.Render();
            }

            if (!EngineCore.GameRunning)
            {
                EngineCore.Exit();
            }
        }
예제 #3
0
 private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     gameRunning = false;
     engine.Exit();
 }