Exemplo n.º 1
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Game.GraphicsDevice.Clear(Color.AliceBlue);

            spriteBatch.Draw(_sky, new Vector2(0, 0), Color.White);
            foreach (Cloud cloud in _clouds)
            {
                cloud.Draw(gameTime, spriteBatch);
            }

            spriteBatch.Draw(_meadow, new Rectangle(0, Game.GraphicsDevice.Viewport.Height - _meadow.Height, _meadow.Width, _meadow.Height), Color.White);
            _building.Draw(gameTime, spriteBatch);

            spriteBatch.DrawString(_font, string.Format("{0:D2}:{1:D2}", _timer.Duration().Minutes, _timer.Duration().Seconds), new Vector2(10, 10), Color.Blue);
            _score.Draw(gameTime, spriteBatch);
        }