Skip to content

Commit 61ac11a

Browse files
Becon032Gaetz
authored andcommitted
Small typos and missed words in MonoGame 2d game tutorial (MonoGame#182)
* Fix typo in ch 10 of the 2D game tutorial * Corrected variable name to match class name. "Tileset" not "TileSet" * typo: added missing space * Changed default pitch value. Short version of PlaySoundEffect method was playing up an octave by default. * missing word in FromFile method summary
1 parent 1e6f1cd commit 61ac11a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

articles/tutorials/building_2d_games/07_optimizing_texture_rendering/snippets/textureatlas.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void Clear()
8888
}
8989

9090
/// <summary>
91-
/// Creates a new texture atlas based a texture atlas xml configuration file.
91+
/// Creates a new texture atlas based on a texture atlas xml configuration file.
9292
/// </summary>
9393
/// <param name="content">The content manager used to load the texture for the atlas.</param>
9494
/// <param name="fileName">The path to the xml file, relative to the content root directory.</param>

articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public void Draw(SpriteBatch spriteBatch)
126126
{
127127
for (int i = 0; i < Count; i++)
128128
{
129-
int tileSetIndex = _tiles[i];
130-
TextureRegion tile = _tileset.GetTile(tileSetIndex);
129+
int tilesetIndex = _tiles[i];
130+
TextureRegion tile = _tileset.GetTile(tilesetIndex);
131131

132132
int x = i % Columns;
133133
int y = i / Columns;

articles/tutorials/building_2d_games/15_audio_controller/snippets/audiocontroller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public float SoundEffectVolume
8888
/// <summary>
8989
/// Gets a value that indicates if this audio controller has been disposed.
9090
/// </summary>
91-
public bool IsDisposed {get; private set; }
91+
public bool IsDisposed { get; private set; }
9292
#endregion
9393

9494
#region ctors
@@ -168,7 +168,7 @@ protected void Dispose(bool disposing)
168168
/// <returns>The sound effect instance created by this method.</returns>
169169
public SoundEffectInstance PlaySoundEffect(SoundEffect soundEffect)
170170
{
171-
return PlaySoundEffect(soundEffect, 1.0f, 1.0f, 0.0f, false);
171+
return PlaySoundEffect(soundEffect, 1.0f, 0.0f, 0.0f, false);
172172
}
173173

174174
/// <summary>

0 commit comments

Comments
 (0)