示例#1
0
        private void NewGameMenuSelected(object sender, EventArgs e)
        {
            var worlds = Directory.GetFiles("Content/World", "*.vgs");

            if (worlds.Length == 1)
            {
                LoadingScreen.Load(ScreenManager, new Screen[] { new GameplayScreen(worlds[0]) });
            }
            else
            {
                ScreenManager.AddScreen(SelectorMenuScreen.Create("Select a world!", worlds, StartWorld));
            }
        }