Exemplo n.º 1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _graphics.PreferredBackBufferWidth  = WindowSettings.WindowWidth;
            _graphics.PreferredBackBufferHeight = WindowSettings.WindowHeight;
            _graphics.ApplyChanges();

            ContentChest.SetContentManager(Content);
            ContentChest.Load();
        }
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            ContentChest = new ContentChest(Content);
            ContentChest.Load();

            _mainMenu = new MainMenu(ContentChest);
            _mainMenu.OnNewGamePressed += NewGame;
            _mainMenu.OnLoadGame       += LoadGame;

            _spriteBatch = new SpriteBatch(GraphicsDevice);

            WorldObjectChest.LoadPrototypes(ContentChest);
        }
Exemplo n.º 3
0
 public void Update(float delta)
 {
     ContentChest.Load();
 }