diff --git a/articles/tutorials/building_2d_games/07_optimizing_texture_rendering/snippets/textureatlas.cs b/articles/tutorials/building_2d_games/07_optimizing_texture_rendering/snippets/textureatlas.cs index 61d1c6e3..57483041 100644 --- a/articles/tutorials/building_2d_games/07_optimizing_texture_rendering/snippets/textureatlas.cs +++ b/articles/tutorials/building_2d_games/07_optimizing_texture_rendering/snippets/textureatlas.cs @@ -88,7 +88,7 @@ public void Clear() } /// - /// Creates a new texture atlas based a texture atlas xml configuration file. + /// Creates a new texture atlas based on a texture atlas xml configuration file. /// /// The content manager used to load the texture for the atlas. /// The path to the xml file, relative to the content root directory. diff --git a/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs b/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs index f4fe5d0e..770c8be2 100644 --- a/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs +++ b/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs @@ -126,8 +126,8 @@ public void Draw(SpriteBatch spriteBatch) { for (int i = 0; i < Count; i++) { - int tileSetIndex = _tiles[i]; - TextureRegion tile = _tileset.GetTile(tileSetIndex); + int tilesetIndex = _tiles[i]; + TextureRegion tile = _tileset.GetTile(tilesetIndex); int x = i % Columns; int y = i / Columns; diff --git a/articles/tutorials/building_2d_games/15_audio_controller/snippets/audiocontroller.cs b/articles/tutorials/building_2d_games/15_audio_controller/snippets/audiocontroller.cs index 3c646d08..871f8c99 100644 --- a/articles/tutorials/building_2d_games/15_audio_controller/snippets/audiocontroller.cs +++ b/articles/tutorials/building_2d_games/15_audio_controller/snippets/audiocontroller.cs @@ -88,7 +88,7 @@ public float SoundEffectVolume /// /// Gets a value that indicates if this audio controller has been disposed. /// - public bool IsDisposed {get; private set; } + public bool IsDisposed { get; private set; } #endregion #region ctors @@ -168,7 +168,7 @@ protected void Dispose(bool disposing) /// The sound effect instance created by this method. public SoundEffectInstance PlaySoundEffect(SoundEffect soundEffect) { - return PlaySoundEffect(soundEffect, 1.0f, 1.0f, 0.0f, false); + return PlaySoundEffect(soundEffect, 1.0f, 0.0f, 0.0f, false); } ///