hi, everyone,
I want make 2D game for Desktop and Nintendo Switch Console, and I want to know What’s the best game display resolution can fit Nintendo Switch and Desktop at the same time?
1280*720 is OK?
Isn’t the switch 1080p?
[quick web search later]
Well, Portable, 720p but docked up to 1080p
The Nintendo Switch[b] is a video game console developed by Nintendo, released worldwide in most regions on March 3, 2017.[c] It is a hybrid console that can be used as a home console and portable device. Its wireless Joy-Con controllers, with standard buttons and directional analog sticks for user input, motion sensing, and tactile feedback, can attach to both sides of the console to support handheld-style play. They can also connect to a Grip accessory to provide a traditional home console g...
I suggest an overall 720p virtual resolution… or 1080p for non switch versions maybe? or user select?
The LCD screen supports resolutions up to 720p (1280×720 px)
is that means if I make a game which keep the resolution as 1280×720 px at Desktop, then I can very easy to porting it to Switch?
Logically, pretty much… but remember, when docked, the games will also only play at 720p unless you use a virtual resolution…
EDIT
Like here maybe:
Mouse position is always between 0, 0 and the native resolution of your monitor, regardless of what buffer size you have set. So the code looks like this (I am using a virtual resolution as my game is designed for 1920x1200, so I am scaling up or down everything depending on the actual resollution):
MouseState mouseState = Mouse.GetState();
Point MousePosition = mouseState.Position;
//the bottom right value is 1919, 1079 at this point.
int VIRTUAL_RESOLUTION_WIDTH = 1920;
int VIRTUAL_RESOLUTIO…
EDIT
Some more relevant data:
EDIT
Struck Gold…
http://blog.roboblob.com/2013/07/27/solving-resolution-independent-rendering-and-2d-camera-using-monogame/
2 Likes