Skip to content

Commit 36cc296

Browse files
Merge branch 'main' into main
2 parents 8f14d87 + dfef484 commit 36cc296

File tree

11 files changed

+25
-14
lines changed

11 files changed

+25
-14
lines changed

articles/getting_started/1_setting_up_your_os_for_development_macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MonoGame provides a setup script that can be executed to setup the Wine environm
5252
1. Enter the following command:
5353

5454
```sh
55-
brew install wget p7zip curl && brew install --cask wine-stable
55+
brew install wget p7zip curl && brew install --cask wine-stable && xattr -dr com.apple.quarantine "/Applications/Wine Stable.app"
5656
```
5757

5858
1. Now that the prerequisites are installed, download the [mgfxc_wine_setup.sh](https://monogame.net/downloads/net9_mgfxc_wine_setup.sh) script and execute it by entering the following command in the terminal:

articles/migration/migrate_38.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Please note that you cannot use the ```3.8.1.*``` wildcard in the ```dotnet-tool
9292
You will also need to add this to your ```.csproj```:
9393

9494
```xml
95-
<Target Name="RestoreDotnetTools" BeforeTargets="Restore">
95+
<Target Name="RestoreDotnetTools" BeforeTargets="CollectPackageReferences">
9696
<Message Text="Restoring dotnet tools" Importance="High" />
9797
<Exec Command="dotnet tool restore" />
9898
</Target>

articles/tutorials/building_2d_games/01_what_is_monogame/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Today, MonoGame is a mature cross-platform framework, that is built with the spi
2020
| ![Figure 1-1: Celeste](./images/celeste.png) | ![Figure 1-2: Stardew Valley](./images/stardew-valley.png) |
2121
| :-------------------------------------------------: | :--------------------------------------------------------: |
2222
| **Figure 1-1 Celeste.** | **Figure 1-2: Stardew Valley** |
23-
| ![Figure 1-3: Streets of Rage 4](./images/sor4.jpg) | [Figure 1-4: Bastion](./images/bastion.jpg) |
24-
| **Figure 1-3: Streets of Rage 4** | **Figure 1-4: Bastion** |
23+
| ![Figure 1-3: Streets of Rage 4](./images/sor4.jpg) | ![Figure 1-4: Bastion](./images/bastion.jpg) |
24+
| **Figure 1-3: Streets of Rage 4** | **Figure 1-4: Bastion** |
2525

2626
> [!NOTE]
2727
>

articles/tutorials/building_2d_games/02_getting_started/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ Open a new *Terminal* window and execute the following commands:
156156
```sh
157157
brew install p7zip
158158
brew install --cask wine-stable
159+
xattr -dr com.apple.quarantine "/Applications/Wine Stable.app"
159160
wget -qO- https://monogame.net/downloads/net8_mgfxc_wine_setup.sh | bash
160161
```
161162

articles/tutorials/building_2d_games/11_input_management/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ To manage gamepad input effectively, we need to track both current and previous
245245
- Check if gamepad buttons are being held down.
246246
- Start and Stop vibration of a gamepad.
247247

248-
To get started, in the `Input` folder f the *MonoGameLibrary* project, create a new file name `GamePadInfo.cs` with the following initial structure:
248+
To get started, in the `Input` folder of the *MonoGameLibrary* project, create a new file name `GamePadInfo.cs` with the following initial structure:
249249

250250
[!code-csharp[](./snippets/gamepadinfo.cs#declaration)]
251251

@@ -382,7 +382,7 @@ The key changes to the `Core` class are:
382382

383383
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:
384384

385-
[!code-csharp[](./snippets/game1.cs?highlight=7,75,81,87,93,99,107,112,115,119,125,127-128,133,139,145,151)]
385+
[!code-csharp[](./snippets/game1.cs?highlight=1,7,75,81,87,93,99,107,112,115,119,125,127-128,133,139,145,151)]
386386

387387
The key changes to the `Game1` class are:
388388

articles/tutorials/building_2d_games/18_texture_sampling/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This normalized system means that regardless of whether your texture is 32×32 p
2929

3030
When you use [**SpriteBatch**](xref:Microsoft.Xna.Framework.Graphics.SpriteBatch) to draw a texture with a source rectangle specified in pixels, MonoGame internally converts those pixel coordinates to normalized texture coordinates before sending them to the GPU. Similarly, when you specify a destination rectangle, MonoGame determines how the normalized texture coordinates should map to screen coordinates.
3131

32-
### What is a SampleState
32+
### What is a SamplerState
3333

3434
A SamplerState controls how textures are sampled during rendering. It determines several aspects of texture rendering:
3535

docfx.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"foundation/**/*.md",
4141
"roadmap/**/*.md",
4242
"roadmap/**/*.yml",
43+
"errors/**/*.md",
4344
"toc.yml",
4445
"*.md"
4546
],

errors/setupwine/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
redirect: ../../articles/tutorials/building_2d_games/02_getting_started/index.md?tabs=windows#setup-wine-for-effect-compilation-macos-and-linux-only
3+
---
4+
5+
[url_validation](../../articles/tutorials/building_2d_games/02_getting_started/index.md?tabs=windows#setup-wine-for-effect-compilation-macos-and-linux-only)

templates/monogame/conceptual.extension.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
*/
44
exports.preTransform = function (model) {
55

6+
// Handle redirect urls that end with .md
7+
if(model.redirect) {
8+
model.redirect = model.redirect.replace(/\.md/g, '.html');
9+
}
610

711
// For layout pages, ignore injecting title and description as header and
812
// first paragraph

templates/monogame/layout/_master.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
{{!include(/^public/.*/)}}
33
<!DOCTYPE html>
44
<html {{#_lang}}lang="{{_lang}}"{{/_lang}}>
5-
{{#redirect_url}}
5+
{{#redirect}}
66
{{>partials/redirect}}
7-
{{/redirect_url}}
7+
{{/redirect}}
88

9-
{{^redirect_url}}
9+
{{^redirect}}
1010
<head>
1111
{{>partials/head}}
1212
</head>
@@ -81,5 +81,5 @@
8181
<script type="text/javascript" src="/public/injectDonateButton.js"></script>
8282
<script type="text/javascript" src="/public/questionAnswer.js"></script>
8383
</body>
84-
{{/redirect_url}}
84+
{{/redirect}}
8585
</html>

0 commit comments

Comments
 (0)