Пример #1
0
 public EnterArea(Game1 game, string currGameScene, int x, int y, string gameSceneToChangeTo, GameSceneManager gameSceneManager, int width, int height) : base(game)
 {
     _game            = game;
     currentGameScene = currGameScene;
     _x = x;
     _y = y;
     _gameSceneToChangeTo = gameSceneToChangeTo;
     _gameSceneManager    = gameSceneManager;
     _width  = width;
     _height = height;
 }
Пример #2
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            _graphics.PreferredBackBufferWidth  = screenWidth;
            _graphics.PreferredBackBufferHeight = screenHeight;
            _graphics.ApplyChanges();
            gameSceneManager = new GameSceneManager(this);
            mob = new NamedEntity();

            foreach (GameComponent component in Components)
            {
                ToggleComponentState(component, false);
            }

            base.Initialize();
        }