SpriterBetaXNA/SpriterBetaXNA/Game1.cs
/// <summary>
/// This is called when the game should draw itself.
/// </summary>
/// <param name="gameTime">Provides a snapshot of timing values.</param>
This is called when the game should draw itself.
This is called when the game should draw itself .
protected override void Draw(GameTime gameTime) {
      GraphicsDevice.Clear(Color.CornflowerBlue);
      spriteBatch.Begin();
      spriteBatch.DrawString(guiFont, hero.Name, charNamePos, Color.Yellow);
      spriteBatch.DrawString(guiFont, hero.CurrentSequenceName, animNamePos, Color.White);
      hero.Draw(spriteBatch);
      spriteBatch.End();
      base.Draw(gameTime);
    }
protected override void Draw ( GameTime gameTime ) { GraphicsDevice . Clear ( Color . CornflowerBlue ) ; spriteBatch . Begin ( ) ; spriteBatch . DrawString ( guiFont , hero . Name , charNamePos , Color . Yellow ) ; spriteBatch . DrawString ( guiFont , hero . CurrentSequenceName , animNamePos , Color . White ) ; hero . Draw ( spriteBatch ) ; spriteBatch . End ( ) ; base . Draw ( gameTime ) ; }
This is called when the game should draw itself.
This is called when the game should draw itself .
// begin sprite batch // update labels // draw our hero // and done
gameTime
GameTime
Provides a snapshot of timing values.
Provides a snapshot of timing values .