MonoGame – trouble switching between scenes without creating useless windows
I’m solo working on a video game as a hobby and decided to give MonoGame a try. I’m a beginner so I’m not very knowledgeable. Everything works fine for now, except the game creating a totally useless window when starting the MainMenu scene and leaving the dead Intro window as a leftover. This is not alright, especially as my game will grow and when I will have dozens of scenes. I guess the issue is caused by the fact the Run() instruction creates a new instance for MainMenu when called. I tried a few code snippets, but they seem to simply don’t work for my code/specific situation. All I want is the game to keep a single window/instance when switching to different scenes. For now, my game have 3 files: scenes.cs, intro.cs and mainmenu.cs. I will upload their structure here to help you understand better what I’m talking about. I would greatly appreciate some help, thank you!