Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Model.Logic         model     = new Model.Logic();
            View.View           view      = new View.View();
            Presenter.Presenter presenter = new Presenter.Presenter(model, view.obiekt);

            Application.Run((Form)view);
            //Application.Run(new View.View());
        }
Ejemplo n.º 2
0
        // Start is called before the first frame update
        void Start()
        {
            if (!System.IO.Directory.Exists("Maps"))
            {
                System.IO.Directory.CreateDirectory("Maps");
            }

            Settings.calculate();
            random = new System.Random();
            Noise.init(cs);

            //new TextureGenerator().generate();

            model      = new Model.Model();
            view       = new View.View();
            controller = new Controller.Controller();
            view.init(canvas, world);
            controller.init();
            clock = new Stopwatch();
            clock.Start();
        }