예제 #1
0
        public override MenuBasic Create()
        {
            this.NeedsInput = false;
            Ready           = true;
            LevelEditorWindow.EditorMode   = false;
            LevelEditorWindow.masterEditor = new MasterEditor();
            LevelEditorWindow.masterEditor.Load();
            LevelEditorWindow.gameManager = new GameManager();


            MasterEditor.LoadNewLevel(DialogManager.ReadFile(new BinaryReader(File.Open("Content/Game/Levels/" + SettingsHolder.map.ToString() + ".lvl", FileMode.Open))));
            GameManager.MyLevel.Reset();
            MasterEditor.Run();

            return(base.Create());
        }
예제 #2
0
 void RunProject(Button button)
 {
     MasterEditor.Run();
 }