Esempio n. 1
0
        public static void Init(string launchParameters, CoreWindow window, SwapChainBackgroundPanel swapChainBackgroundPanel)
        {
            if (state != EngineState.UnInitialized)
            {
                game = XamlGame <RGSSGame> .Create(launchParameters, window, swapChainBackgroundPanel);

                game.IsFixedTimeStep = true;
                game.GameControler   = (GameControler.CreateControler(game));
            }
            else
            {
                throw new Exception("RGSSEngine has already been initialized");
            }
        }
Esempio n. 2
0
 public static GameControler CreateControler(RGSSGame game)
 {
     _gameControler = new GameControler(game);
     return(_gameControler);
 }
Esempio n. 3
0
 private GameControler(RGSSGame game)
 {
     _game                 = game;
     GameState             = GameState.Freezed;
     DrawOneFrameCompleted = new AutoResetEvent(false);
 }