From 186e0091faf5552c812f392d9e48694960bdb778 Mon Sep 17 00:00:00 2001 From: Eddy Luten Date: Mon, 23 Mar 2026 21:31:01 -0500 Subject: [PATCH 1/3] Include a line highlight and explanation for CharacterRegion.End --- .../building_2d_games/16_working_with_spritefonts/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md b/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md index 4eacfe28..85facbf6 100644 --- a/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md +++ b/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md @@ -206,12 +206,13 @@ Next, right-click the following TTF font and choose "Save Link as...". Save the Next, open the *04B_30.spritefont* file in your code editor and make the following changes: -[!code-csharp[](./snippets/04B_30.spritefont?highlight=4,5)] +[!code-csharp[](./snippets/04B_30.spritefont?highlight=4,5,12)] The key changes here are: 1. The `` element was updated to `04B_30.ttf`, the exact filename with extension of the TTF font we just downloaded. 2. The `` element was updated to be `17.5`. +3. The ``'s `` element was updated to include commonly displayed characters. ### Updating the Game From 73959f288b0fa1829c36bfbdbd302b191daa4f5c Mon Sep 17 00:00:00 2001 From: Eddy Luten Date: Tue, 24 Mar 2026 16:57:14 -0500 Subject: [PATCH 2/3] Fixed line highlighting in Ch. 17, section Scene Management --- articles/tutorials/building_2d_games/17_scenes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/tutorials/building_2d_games/17_scenes/index.md b/articles/tutorials/building_2d_games/17_scenes/index.md index 1e75b89b..44f57f01 100644 --- a/articles/tutorials/building_2d_games/17_scenes/index.md +++ b/articles/tutorials/building_2d_games/17_scenes/index.md @@ -93,7 +93,7 @@ With the Base scene implementation complete, we can now use it to create actual With the base `Scene` class defined, the `Core` class needs to be updated to handle management of the scenes, including update, drawing, and changing scenes. Open the `Core.cs` file in the *MonoGameLibrary* project and make the following changes: -[!code-csharp[](./snippets/core.cs?highlight=8,21-25,147–158,163–172,174–182,184–208)] +[!code-csharp[](./snippets/core.cs?highlight=8,21-25,147-158,163-172,174-182,184-208)] The key changes here are: From 2314faf94e8734549adbdd443c24fe8ac75f27bc Mon Sep 17 00:00:00 2001 From: Eddy Luten Date: Tue, 24 Mar 2026 18:53:47 -0500 Subject: [PATCH 3/3] Undoing changes caused by user error --- .../building_2d_games/16_working_with_spritefonts/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md b/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md index 85facbf6..4eacfe28 100644 --- a/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md +++ b/articles/tutorials/building_2d_games/16_working_with_spritefonts/index.md @@ -206,13 +206,12 @@ Next, right-click the following TTF font and choose "Save Link as...". Save the Next, open the *04B_30.spritefont* file in your code editor and make the following changes: -[!code-csharp[](./snippets/04B_30.spritefont?highlight=4,5,12)] +[!code-csharp[](./snippets/04B_30.spritefont?highlight=4,5)] The key changes here are: 1. The `` element was updated to `04B_30.ttf`, the exact filename with extension of the TTF font we just downloaded. 2. The `` element was updated to be `17.5`. -3. The ``'s `` element was updated to include commonly displayed characters. ### Updating the Game