Beispiel #1
0
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.Black);
            spriteBatch.Begin();

            paddle.Draw(gameTime);
            foreach (var ball in balls)
            {
                ball.Draw(gameTime);
            }

            foreach (var brick in bricks)
            {
                brick.Draw(gameTime);
            }

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