Esempio n. 1
0
        public Game()
        {
            Instance        = this;
            Registery       = new SystemRegistery();
            EntityRegistery = new EntityRegistery();
            EntityLoader    = new EntityLoader(EntityRegistery);
            Window          = Window.Create(1280, 720, "Game.Engine");
            Window.Init();
            Window.EnableVsync(false);
            Input     = InputManager.Create();
            UIContext = UIContext.Create(Window);

            Registery.Register(new TransformSystem());
            Registery.Register(new CameraSystem());

            Registery.Register(new RenderSystem());

            EventManager.RegisterListener <CloseWindowEvent>(WindowClosed);
        }