Exemplo n.º 1
0
        private void EngineStartup(GraphicsDeviceManager graphics)
        {
            _graphics = graphics;

            _contentManager = new ContentManager(base.Game.Services);

            //Game bits
            _inputProvider = new InputProvider(base.Game);
            var defaultFont = Engine.Instance.ContentManager.Load <SpriteFont>("Content\\ArialBlack");

            _graphicsUtils = new GraphicsUtilities(defaultFont);
            _spriteBatch   = new SpriteBatch(Device);
            base.Game.Components.Add(this);
        }
Exemplo n.º 2
0
        private void EngineStartup(GraphicsDeviceManager graphics)
        {
            _graphics = graphics;

            _contentManager = new ContentManager(base.Game.Services);

            //Game bits
            _inputProvider = new InputProvider(base.Game);
            var defaultFont = Engine.Instance.ContentManager.Load<SpriteFont>("Content\\ArialBlack");
            _graphicsUtils = new GraphicsUtilities(defaultFont);
            _spriteBatch = new SpriteBatch(Device);
            base.Game.Components.Add(this);
        }