Hey everyone,
I've been slowly finishing the Window Store release of Tunnel Lords. It has been a fair amount of work, but I've been picking away at it a lot slower than in the past. It is getting pretty close though. I've got a couple of tough bugs to crack and then off to some actual playtesting.
Right now, I'm having difficulty with the game switching between landscape and portrait mode when you rotate a tablet. When compiling the code for UWP, I can set properties in Package.appxmanifest that force the program to stay only in Landscape or Landscape-flipped mode. However, Package.appxmanifest is only available in the UWP build and not in the MonoGame Windows build.
There is a property in GraphicsDeviceManager called SupportedOrientations. I can set this property to only support Landscape, but the game still allows switching into Portrait mode with this property set.
graphics = new GraphicsDeviceManager(this) { SupportedOrientations = DisplayOrientation.LandscapeLeft };
I was wondering if anyone has experience with how to do this properly for a Windows build that is not UWP specific? In particular, it is a problem if someone plays the game on a 2 in 1 and switches to tablet mode for some reason, as it really messes up the resolution when it rotates. I'd like to be able to release the game on Windows outside of the Windows Store/UWP.
Thanks,
Brett