Beispiel #1
0
        public MyGame(Game game, GraphicsDeviceManager graph)
        {
            Game = game;
            _graphics = graph;

            Main.MyGame.GraphicDevice = Game.GraphicsDevice;

            this._log = new Log();
            this._texturesManager = new Texture2DManager(Game.Content);

            _graphics.PreferredBackBufferHeight= Config.GAME_HEIGHT;
            _graphics.PreferredBackBufferWidth = Config.GAME_WIDTH;
            _graphics.ApplyChanges();

            Game.Window.Title = Config.GAME_NAME;
        }
Beispiel #2
0
 public Texture2DManager(ContentManager content)
 {
     _instance = this;
     _content = content;
     _textures = new Dictionary<string, Texture2D>();
 }