예제 #1
0
        public MainForm()
        {
            StartPosition = FormStartPosition.CenterScreen;

            InitializeComponent();

            renderer = new SharpRenderer(renderPanel)
            {
                dffRenderer = new DFFRenderer(this)
            };

            showObjectsGToolStripMenuItem.CheckState = CheckState.Indeterminate;

            AboutBox             = new AboutBox();
            ViewConfig           = new ViewConfig(renderer.Camera);
            ConfigEditor         = new ConfigEditor.ConfigEditor();
            LevelEditor          = new LevelEditor.LevelEditor();
            CollisionEditorDict  = new Dictionary <ToolStripDropDownItem, CollisionEditor.CollisionEditor>();
            LayoutEditorDict     = new Dictionary <ToolStripDropDownItem, LayoutEditor.LayoutEditor>();
            CameraEditor         = new CameraEditor.CameraEditor();
            ParticleEditor       = new ParticleEditor.ParticleMenu();
            TexturePatternEditor = new TexturePatternEditor.TexturePatternEditor();
            LightEditor          = new LightEditor.LightMenu();
            SetIdTableEditor     = new SetIdTableEditor.SetIdTableEditor();
        }
예제 #2
0
 static void Main()
 {
     if (RunEditor)
     {
         using (var game = new LevelEditor.LevelEditor())
             game.Run();
     }
     else
     {
         using (var game = new Game1())
             game.Run();
     }
 }