Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Save the textures to your content project and name it "**AnimatedCharacter**" (t
GraphicsDevice.Clear(Color.CornflowerBlue);

_spriteBatch.Begin(blendState: BlendState.Opaque);
_spriteBatch.Draw (starTexture);
_spriteBatch.Draw(starTexture, Vector2.Zero, Color.White);
_spriteBatch.End();
}
```
Expand All @@ -88,7 +88,7 @@ Save the textures to your content project and name it "**AnimatedCharacter**" (t
public override void Draw (GameTime game)
{
_spriteBatch.Begin(blendState: BlendState.Opaque);
_spriteBatch.Draw (starTexture);
_spriteBatch.Draw(starTexture, Vector2.Zero, Color.White);
_spriteBatch.End();

_spriteBatch.Begin(blendState: BlendState.AlphaBlend);
Expand Down Expand Up @@ -117,3 +117,4 @@ Try using this technique on top of the [How To Make A Scrolling Background](HowT
- [SpriteBatch](xref:Microsoft.Xna.Framework.Graphics.SpriteBatch)
- [SpriteBatch.Draw](xref:Microsoft.Xna.Framework.Graphics.SpriteBatch#Microsoft_Xna_Framework_Graphics_SpriteBatch_Draw_Microsoft_Xna_Framework_Graphics_Texture2D_Microsoft_Xna_Framework_Vector2_Microsoft_Xna_Framework_Color_)
- [Texture2D](xref:Microsoft.Xna.Framework.Graphics.Texture2D)