From eb4631d7a3c0991e0e5280601f343e61f54d7d7f Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 26 Nov 2025 00:46:14 -0500 Subject: [PATCH 1/5] Fix snippet highlighting for chapter 11 Reference: #212 --- .../tutorials/building_2d_games/11_input_management/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/articles/tutorials/building_2d_games/11_input_management/index.md b/articles/tutorials/building_2d_games/11_input_management/index.md index aa22cab9..29a9d420 100644 --- a/articles/tutorials/building_2d_games/11_input_management/index.md +++ b/articles/tutorials/building_2d_games/11_input_management/index.md @@ -366,7 +366,7 @@ Now that we have our input management system complete, we will update our game t The `Core` class serves as our base game class, so we will update it to add and expose the `InputManager` globally. Open the *Core.cs* file in the *MonoGameLibrary* project and update it to the following: -[!code-csharp[](./snippets/core.cs?highlight=5-6,39-47,91-92,106–107,110–121)] +[!code-csharp[](./snippets/core.cs?highlight=5-6,39-47,91-92,106-107,110-121)] The key changes to the `Core` class are: @@ -383,7 +383,7 @@ The key changes to the `Core` class are: Now we can update our `Game1` class to use the new input management system through the `Core` class. Open `Game1.cs` in the game project and update it to the following: -[!code-csharp[](./snippets/game1.cs?highlight=1,7,73,79,85,91,97,105,110,113,117,123,125-126,131,137,143,149)] +[!code-csharp[](./snippets/game1.cs?highlight=1,7,72,78,84,90,96,104,109,112,116,122,124-125,130,136,142,148)] The key changes to the `Game1` class are: From 8587873b26f51efaa37230702de3e6ffab86116b Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 26 Nov 2025 00:48:49 -0500 Subject: [PATCH 2/5] Fix snippet highlighting for chapter 12 Reference: #212 --- .../tutorials/building_2d_games/12_collision_detection/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/tutorials/building_2d_games/12_collision_detection/index.md b/articles/tutorials/building_2d_games/12_collision_detection/index.md index 8c6e5b9e..bb5b9f22 100644 --- a/articles/tutorials/building_2d_games/12_collision_detection/index.md +++ b/articles/tutorials/building_2d_games/12_collision_detection/index.md @@ -311,7 +311,7 @@ If you run the game right now and move the slime around, you will notice a few i We can now implement these features using collision detection and response in our game. In the *DungeonSlime* project (your main game project), open the `Game1.cs` file and make the following changes to the `Game1` class: -[!code-csharp[](./snippets/game1.cs?highlight=1,5,25-29,40-45,76–177,182–194,294–295)] +[!code-csharp[](./snippets/game1.cs?highlight=1,5,25-29,40-45,76-177,182-194,294-295)] The key changes made here are: From 09849ebedb592ecb3d1f022c5a1b6ef3583dbbf7 Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 26 Nov 2025 00:50:24 -0500 Subject: [PATCH 3/5] Fix snippet highlighting for chapter 13 Reference: #212 --- .../building_2d_games/13_working_with_tilemaps/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/tutorials/building_2d_games/13_working_with_tilemaps/index.md b/articles/tutorials/building_2d_games/13_working_with_tilemaps/index.md index 94eaacbb..1716c90f 100644 --- a/articles/tutorials/building_2d_games/13_working_with_tilemaps/index.md +++ b/articles/tutorials/building_2d_games/13_working_with_tilemaps/index.md @@ -186,7 +186,7 @@ This tilemap configuration creates a simple dungeon layout with walls around the With all of the assets now in place and configured, we can update the `Game1` class to load the tilemap and draw it. We will also need to update the collision logic so that the boundary is no longer the edge of the screen, but instead the edges of the wall tiles of the tilemap. Open `Game1.cs` and make the following updates: -[!code-csharp[](./snippets/game1.cs?highlight=31-35,46-61,80-82,109,111,113,125,118,120,122,124,142,145,147,150,153,156,158,161,177–179,301–302)] +[!code-csharp[](./snippets/game1.cs?highlight=31-35,46-61,80-82,109,111,113,125,118,120,122,124,142,145,147,150,153,156,158,161,177-179,301-302)] The key changes to the `Game1` class include: From 06f1dd0a4928e3aa04fd96e3239a8e152784cebd Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 26 Nov 2025 00:52:02 -0500 Subject: [PATCH 4/5] Fix snippet highlighting for chapter 15 Reference: #212 --- .../tutorials/building_2d_games/15_audio_controller/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/articles/tutorials/building_2d_games/15_audio_controller/index.md b/articles/tutorials/building_2d_games/15_audio_controller/index.md index 8484b2fe..0f0293b5 100644 --- a/articles/tutorials/building_2d_games/15_audio_controller/index.md +++ b/articles/tutorials/building_2d_games/15_audio_controller/index.md @@ -117,7 +117,7 @@ Now that we have the audio controller class complete, we can update the game to The `Core` class serves as our base game class, so we will update it first to add and expose the `AudioController` globally. Open the `Core.cs` file in the *MonoGameLibrary* project and update it to the following: -[!code-csharp[](./snippets/core.cs?highlight=6,50-53,115–116,119–125,132–133)] +[!code-csharp[](./snippets/core.cs?highlight=6,50-53,115-116,119-125,132-133)] The key changes made here are: @@ -131,7 +131,7 @@ The key changes made here are: Next, update the `Game1` class to use the audio controller for audio playback. Open `Game1.cs` and make the following updates: -[!code-csharp[](./snippets/game1.cs?highlight=45-46,77-78,104-105,195–196,214–215,268–286)] +[!code-csharp[](./snippets/game1.cs?highlight=45-46,77-78,104-105,195-196,214-215,268-286)] > [!NOTE] > Note there were a lot of replacements in the `LoadContent` method, switching from loading and initializing the background Song and replacing it with a call to the new `AudioController` to do all the work managing the Song reference. Much cleaner. From 7806aba2f0c9c1dc6371f71c0d2ea3cb6e9d3616 Mon Sep 17 00:00:00 2001 From: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com> Date: Wed, 26 Nov 2025 00:53:08 -0500 Subject: [PATCH 5/5] Fix snippet highlighting for chapter 16 Reference: #212 --- .../building_2d_games/16_working_with_spritefonts/index.md | 2 +- 1 file changed, 1 insertion(+), 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 2e6cfd04..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 @@ -217,7 +217,7 @@ The key changes here are: Finally, open the `Game1.cs` file and make the following changes: -[!code-csharp[](./snippets/game1.cs?highlight=48-58,93-99,129-130,241-242,386-397)] +[!code-csharp[](./snippets/game1.cs?highlight=48-58,93-99,128-129,241-242,386-397)] The key changes made are: