Skip to content

Commit e237df8

Browse files
authored
typo fixes in building_2d_games/Chapter 5 (#122)
* Update index.md to fix a typo * typo fix in chapter 5 in the 2d tutorial
1 parent 8f3a32d commit e237df8

File tree

1 file changed

+2
-2
lines changed
  • articles/tutorials/building_2d_games/05_content_pipeline

1 file changed

+2
-2
lines changed

articles/tutorials/building_2d_games/05_content_pipeline/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For instance, to load an image file directly at runtime, you would need to:
1616
3. Load the image file as a texture at runtime using the [**Texture2D.FromFile**](xref:Microsoft.Xna.Framework.Graphics.Texture2D.FromFile(Microsoft.Xna.Framework.Graphics.GraphicsDevice,System.String)) method.
1717

1818
> [!IMPORTANT]
19-
> A big disadvantage to loading an image file as a texture directly, is when that when it loads it, it does so in its compressed format such as *.png* or *.jpg*. These compression formats are not understood by a Graphics Processing Unit (GPU); they will need to be decompressed into raw bytes as a format the GPU does understand before it can store the data. Doing this can potentially leave a larger memory footprint for your assets. You will also need to handle how different compression formats work on the platform you are targeting such as desktops, mobile, and consoles.
19+
> A big disadvantage to loading an image file as a texture directly, is that when it loads, it does so in its compressed format such as *.png* or *.jpg*. These compression formats are not understood by a Graphics Processing Unit (GPU); they will need to be decompressed into raw bytes as a format the GPU does understand before it can store the data. Doing this can potentially leave a larger memory footprint for your assets. You will also need to handle how different compression formats work on the platform you are targeting such as desktops, mobile, and consoles.
2020
2121
On the other side of this coin, MonoGame offers the **Content Pipeline**; a workflow for managing assets. The workflow is made up of a set of tools and utilities that are automatically added by default when you create a new MonoGame project using the MonoGame project templates. To use this workflow, you need to:
2222

@@ -157,7 +157,7 @@ The Content Pipeline offers significant advantages:
157157

158158
## The ContentManager Class
159159

160-
To load assets in your game code, MonoGame provides the [**ContentManager**](xref:Microsoft.Xna.Framework.Content.ContentManager) class. The [**Game**](xref:Microsoft.Xna.Framework.Game) already has a [**Content**](xref:Microsoft.Xna.Framework.Game.Content) property which is a ready-to-ue instance of the [**ContentManager**](xref:Microsoft.Xna.Framework.Content.ContentManager)
160+
To load assets in your game code, MonoGame provides the [**ContentManager**](xref:Microsoft.Xna.Framework.Content.ContentManager) class. The [**Game**](xref:Microsoft.Xna.Framework.Game) already has a [**Content**](xref:Microsoft.Xna.Framework.Game.Content) property which is a ready-to-use instance of the [**ContentManager**](xref:Microsoft.Xna.Framework.Content.ContentManager)
161161

162162
### ContentManager Methods
163163

0 commit comments

Comments
 (0)