示例#1
0
        /// <summary>
        /// Program entry point
        /// </summary>
        public static void Main()
        {
            GameResources.LoadResources();
            SetMusicVolume(0.3f);

            PlayMusic(GameResources.GameMusic("Intro"), 1);

            View.Initialise();

            while (!EndProgramRequested())
            {
                StateController.Instance.DoCurrentControllerStuff();
            }

            StopMusic();
            GameResources.FreeResources();
        }
 /// <summary>
 /// Static constructor for the current controller
 /// </summary>
 static MainMenuController()
 {
     MainMenuController.BuildMainMenu();
     _Music = GameResources.GameMusic("MainMenu");
 }