Skip to content

Commit accf16a

Browse files
Merge branch 'main' into dellis1972-dev-docs
2 parents 84d558f + 0a7b299 commit accf16a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

articles/getting_started/1_setting_up_your_os_for_development_ubuntu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Setting up your OS for development on Ubuntu
3-
description: This section provides a step-by-step guide for setting up your development environment on Windows.
3+
description: This section provides a step-by-step guide for setting up your development environment on Ubuntu.
44
---
55

66
To develop with MonoGame in C#, you will need to install the .NET SDK. As of MonoGame 3.8.2 the minimum supported version is .NET 8.

articles/getting_started/5_adding_basic_code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The following is a line-by-line analysis of the above code.
120120
float updatedBallSpeed = ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
121121
```
122122

123-
This code caches how much time, in seconds, since the last `Update` call was run, which gives us the duration of a single frame drawn to the screen. This is then multiplied by the `ballSPeed` value to allow us to control just how fast the ball moves each frame.
123+
This code caches how much time, in seconds, since the last `Update` call was run, which gives us the duration of a single frame drawn to the screen. This is then multiplied by the `ballSpeed` value to allow us to control just how fast the ball moves each frame.
124124

125125
The reason why `ballSpeed` is multiplied by `gameTime.ElapsedGameTime.TotalSeconds` is because, when not using fixed time step, the time between Update calls varies. To account for this, the ballSpeed is multiplied by the amount of time that has passed since the last Update call. The result is that the ball appears to move at the same speed regardless of what framerate the game happens to be running at.
126126

templates/monogame/partials/theme.tmpl.partial

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<!-- Google tag (gtag.js) -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-38431038-1"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'UA-38431038-1');
9+
</script>
10+
111
<script>
212
const theme = localStorage.getItem('theme') || 'auto'
313
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)

0 commit comments

Comments
 (0)