Skip to content

Commit fc46976

Browse files
authored
Fix typo in Chapter 8: game1.cs (#200)
1 parent 8bcc198 commit fc46976

File tree

1 file changed

+2
-2
lines changed
  • articles/tutorials/building_2d_games/08_the_sprite_class/snippets

1 file changed

+2
-2
lines changed

articles/tutorials/building_2d_games/08_the_sprite_class/snippets/game1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected override void Draw(GameTime gameTime)
5959
SpriteBatch.Begin(samplerState: SamplerState.PointClamp);
6060

6161
// Draw the slime sprite.
62-
_slime.Draw(SpriteBatch, Vector2.One);
62+
_slime.Draw(SpriteBatch, Vector2.Zero);
6363

6464
// Draw the bat sprite 10px to the right of the slime.
6565
_bat.Draw(SpriteBatch, new Vector2(_slime.Width + 10, 0));
@@ -69,4 +69,4 @@ protected override void Draw(GameTime gameTime)
6969

7070
base.Draw(gameTime);
7171
}
72-
}
72+
}

0 commit comments

Comments
 (0)