Skip to content

Commit

Permalink
Fixed an issue with the position of the adventurer in the code exampl…
Browse files Browse the repository at this point in the history
…e of AnimatedSprite in the docs (#80)

Resolves #79
  • Loading branch information
RychuP authored Oct 28, 2024
1 parent ce9cb76 commit 1067075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/features/2d-animations/animatedsprite/animatedsprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ protected override void Draw(GameTime gameTime)

_spriteBatch.Begin(samplerState: SamplerState.PointClamp);
// highlight-next-line
_spriteBatch.Draw(_adventurer, Vector2.Zero, 0.0f, new Vector2(3, 3));
int scale = 3;
// highlight-next-line
_spriteBatch.Draw(_adventurer, _adventurer.Origin * scale, 0, new Vector2(scale));
_spriteBatch.End();

base.Draw(gameTime);
Expand Down

0 comments on commit 1067075

Please sign in to comment.