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

            _currentFPS = 0.0f;

            _input    = new Input();
            _config   = new Config();
            _assets   = new Assets();
            _viewport = new Viewport();
            _shaders  = new Shaders(Content, GraphicsDevice);

            _shaders.AddShader("fade");
            _shaders.AddShader("lightsOff");
            _shaders.AddShader("lightsOn");

            Shaders.FadeAmount = 0.0f;

            _worldRenderTarget = new RenderTarget2D(GraphicsDevice, Width, Height);

            _assets.LoadAssets(Content);

            _hud = new HUD();

            test = new TestRoom();
        }
Ejemplo n.º 2
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _currentFPS = 0.0f;

            _input = new Input();
            _config = new Config();
            _assets = new Assets();
            _viewport = new Viewport();
            _shaders = new Shaders(Content, GraphicsDevice);

            _shaders.AddShader("fade");
            _shaders.AddShader("lightsOff");
            _shaders.AddShader("lightsOn");

            Shaders.FadeAmount = 0.0f;

            _worldRenderTarget = new RenderTarget2D(GraphicsDevice, Width, Height);

            _assets.LoadAssets(Content);

            _hud = new HUD();

            test = new TestRoom();
        }