diff --git a/Tutorials/learn-monogame-2d/src/11-Input-Management/DungeonSlime/Game1.cs b/Tutorials/learn-monogame-2d/src/11-Input-Management/DungeonSlime/Game1.cs index 613cd94e..a9e3bfbb 100644 --- a/Tutorials/learn-monogame-2d/src/11-Input-Management/DungeonSlime/Game1.cs +++ b/Tutorials/learn-monogame-2d/src/11-Input-Management/DungeonSlime/Game1.cs @@ -50,9 +50,6 @@ protected override void LoadContent() protected override void Update(GameTime gameTime) { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - // Update the slime animated sprite. _slime.Update(gameTime); diff --git a/Tutorials/learn-monogame-2d/src/11-Input-Management/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/11-Input-Management/MonoGameLibrary/Core.cs index 114df240..bf6d551c 100644 --- a/Tutorials/learn-monogame-2d/src/11-Input-Management/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/11-Input-Management/MonoGameLibrary/Core.cs @@ -87,6 +87,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/12-Collision-Detection/DungeonSlime/Game1.cs b/Tutorials/learn-monogame-2d/src/12-Collision-Detection/DungeonSlime/Game1.cs index 77a00299..360aafe4 100644 --- a/Tutorials/learn-monogame-2d/src/12-Collision-Detection/DungeonSlime/Game1.cs +++ b/Tutorials/learn-monogame-2d/src/12-Collision-Detection/DungeonSlime/Game1.cs @@ -61,9 +61,6 @@ protected override void LoadContent() protected override void Update(GameTime gameTime) { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - // Update the slime animated sprite. _slime.Update(gameTime); diff --git a/Tutorials/learn-monogame-2d/src/12-Collision-Detection/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/12-Collision-Detection/MonoGameLibrary/Core.cs index 114df240..d33570a4 100644 --- a/Tutorials/learn-monogame-2d/src/12-Collision-Detection/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/12-Collision-Detection/MonoGameLibrary/Core.cs @@ -87,6 +87,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/13-Tilemap/DungeonSlime/Game1.cs b/Tutorials/learn-monogame-2d/src/13-Tilemap/DungeonSlime/Game1.cs index c4051eba..364e3a20 100644 --- a/Tutorials/learn-monogame-2d/src/13-Tilemap/DungeonSlime/Game1.cs +++ b/Tutorials/learn-monogame-2d/src/13-Tilemap/DungeonSlime/Game1.cs @@ -84,9 +84,6 @@ protected override void LoadContent() protected override void Update(GameTime gameTime) { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - // Update the slime animated sprite. _slime.Update(gameTime); diff --git a/Tutorials/learn-monogame-2d/src/13-Tilemap/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/13-Tilemap/MonoGameLibrary/Core.cs index 114df240..d33570a4 100644 --- a/Tutorials/learn-monogame-2d/src/13-Tilemap/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/13-Tilemap/MonoGameLibrary/Core.cs @@ -87,6 +87,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/DungeonSlime/Game1.cs b/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/DungeonSlime/Game1.cs index 06981c2f..53fb8763 100644 --- a/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/DungeonSlime/Game1.cs +++ b/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/DungeonSlime/Game1.cs @@ -113,9 +113,6 @@ protected override void LoadContent() protected override void Update(GameTime gameTime) { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - // Update the slime animated sprite. _slime.Update(gameTime); diff --git a/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/MonoGameLibrary/Core.cs index 114df240..d33570a4 100644 --- a/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/14-SoundEffects-And-Music/MonoGameLibrary/Core.cs @@ -87,6 +87,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/15-Audio-Controller/DungeonSlime/Game1.cs b/Tutorials/learn-monogame-2d/src/15-Audio-Controller/DungeonSlime/Game1.cs index bc688268..39c0917b 100644 --- a/Tutorials/learn-monogame-2d/src/15-Audio-Controller/DungeonSlime/Game1.cs +++ b/Tutorials/learn-monogame-2d/src/15-Audio-Controller/DungeonSlime/Game1.cs @@ -107,9 +107,6 @@ protected override void LoadContent() protected override void Update(GameTime gameTime) { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - // Update the slime animated sprite. _slime.Update(gameTime); diff --git a/Tutorials/learn-monogame-2d/src/15-Audio-Controller/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/15-Audio-Controller/MonoGameLibrary/Core.cs index 397c613f..5be33b6e 100644 --- a/Tutorials/learn-monogame-2d/src/15-Audio-Controller/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/15-Audio-Controller/MonoGameLibrary/Core.cs @@ -93,6 +93,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/DungeonSlime/Game1.cs b/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/DungeonSlime/Game1.cs index 2ade5c56..287f8ded 100644 --- a/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/DungeonSlime/Game1.cs +++ b/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/DungeonSlime/Game1.cs @@ -131,9 +131,6 @@ protected override void LoadContent() protected override void Update(GameTime gameTime) { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - // Update the slime animated sprite. _slime.Update(gameTime); diff --git a/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/MonoGameLibrary/Core.cs index 397c613f..5be33b6e 100644 --- a/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/16-Working-With-SpriteFonts/MonoGameLibrary/Core.cs @@ -93,6 +93,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/17-Scenes/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/17-Scenes/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/17-Scenes/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/17-Scenes/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/18-Texture-Wrapping/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/18-Texture-Wrapping/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/18-Texture-Wrapping/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/18-Texture-Wrapping/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/19-User-Interface-Fundamentals/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/19-User-Interface-Fundamentals/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/19-User-Interface-Fundamentals/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/19-User-Interface-Fundamentals/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/20-Implementing-UI-With-Gum/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/20-Implementing-UI-With-Gum/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/20-Implementing-UI-With-Gum/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/20-Implementing-UI-With-Gum/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/24-Shaders/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/24-Shaders/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/24-Shaders/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/24-Shaders/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/25-Packaging-Game/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/25-Packaging-Game/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/25-Packaging-Game/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/25-Packaging-Game/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize() diff --git a/Tutorials/learn-monogame-2d/src/27-Conclusion/MonoGameLibrary/Core.cs b/Tutorials/learn-monogame-2d/src/27-Conclusion/MonoGameLibrary/Core.cs index d83c54fe..40aaa84a 100644 --- a/Tutorials/learn-monogame-2d/src/27-Conclusion/MonoGameLibrary/Core.cs +++ b/Tutorials/learn-monogame-2d/src/27-Conclusion/MonoGameLibrary/Core.cs @@ -100,6 +100,9 @@ public Core(string title, int width, int height, bool fullScreen) // Mouse is visible by default IsMouseVisible = true; + + // Exit on escape is true by default + ExitOnEscape = true; } protected override void Initialize()