示例#1
0
文件: MyGame.cs 项目: Nakato53/Jam
        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;
        }
示例#2
0
 public Texture2DManager(ContentManager content)
 {
     _instance = this;
     _content = content;
     _textures = new Dictionary<string, Texture2D>();
 }