Beispiel #1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            GameProcessor.Draw(gameTime, SpriteBatch);

            base.Draw(gameTime);
        }
Beispiel #2
0
        protected override void LoadContent()
        {
            GameProcessor.LoadContent(this);

            SpriteBatch = new SpriteBatch(GraphicsDevice).DisposeWith(instanceDisposer);

            ParticleManager.LoadContent(this);
        }
Beispiel #3
0
        protected override void Update(GameTime gameTime)
        {
            GameProcessor.Update(gameTime);

            if (InputHandler.KeyPressed(Keys.F1) || InputHandler.ButtonPressed(Buttons.Start, PlayerIndex.One))
            {
                Config.FullScreen     = !Config.FullScreen;
                Graphics.IsFullScreen = Config.FullScreen;
                Graphics.ApplyChanges();
            }

            base.Update(gameTime);
        }