Ejemplo n.º 1
0
        private static void MonoGameOnInitialize(object sender, EventArgs eventArgs)
        {
            Resources = new ResourcesManager();

            Platform.Initialize();

            Logger.Log("Rise", LoggerLevel.Info, "Initializing modules...");

            Controller = new Controller();
            Pointing   = new Pointing();
            Input      = new LegacyInputManager();

            Sound   = new SoundManager();
            Graphic = new GraphicManager(MonoGame.Graphics, MonoGame.GraphicsDevice);
            Scene   = new SceneManager();
            Ui      = new UiManager();
            Debug   = new DebugManager();

            _initializeAction?.Invoke();

            Scene.Initialize();
            Input.Initialize();

            Scene.Switch(_startScene);

            Config.Apply();

            Graphic.AllowUserResizing();
        }