Пример #1
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texturaFundo, new Rectangle(0, 0, gw.ClientBounds.Width,
                                                         gw.ClientBounds.Height), Color.White);

            asteroide_gerenciador.Draw(gameTime, spriteBatch);

            jogador1.Draw(gameTime, spriteBatch);

            spriteBatch.DrawString(Game1.fonte, "PONTOS: ", new Vector2(5, 5), Color.White);

            spriteBatch.DrawString(Game1.fonte, autor,
                                   new Vector2(
                                       gw.ClientBounds.Width - Game1.fonte.MeasureString(autor).X - 5,
                                       5), Color.White);
        }