Exemple #1
0
        protected override void Draw(GameTime gameTime)
        {
            if (GameValues.Bloom)
            {
                bloom.Visible = true;
            }
            else
            {
                bloom.Visible = false;
            }
            bloom.BeginDraw();
            GraphicsDevice.Clear(Color.Black);
            spriteBatch.Begin();

            switch (GameValues.DrawMethod)
            {
            case 0:
                ParticleManager.DrawAsPoints(spriteBatch);
                break;

            case 1:
                ParticleManager.DrawAsArrows(spriteBatch);
                break;
            }

            spriteBatch.End();
            base.Draw(gameTime);
            spriteBatch.Begin();

            ParticleManager.DrawText(spriteBatch);
            FPSCounter.Draw(spriteBatch);

            spriteBatch.End();
        }
Exemple #2
0
        protected override void Update(GameTime gameTime)
        {
            if (GameStorage.game.IsActive)
            {
                ControlHandler.Update();
            }

            EingabenAnzeige.Update();

            ParticleManager.Update(GraphicsDevice);

            FPSCounter.Update(gameTime);

            base.Update(gameTime);
        }