Game Development Reference
In-Depth Information
Handling Edge Cases
Be prepared for edge cases and situations where you can't totally anticipate the resolution
your game is going to run on. Because of this, it is important to test your game at multiple
resolutions and DPIs. You can easily do this with the Windows 8 Device Simulator in Visual
Studio.
Figure 3-15. Testing out different resolutions in the simulator.
As you can see in Figure 3-15 , simply select the icon that looks like a monitor on the right-
hand side and select a different resolution to test your game out and see how it responds.
Set a Maximum Resolution
No matter what you end up doing to support multiple resolutions, just keep in mind the max-
imum resolution your game should render then scale the game up after that. For my Super
Paper Monster Smasher game, my max resolution is 1076×600 pixels, which scales up per-
fectly to 1366×768 pixels. Anything higher than this and I simply scale the canvas up. This
way the game is always rendering at a resolution I am comfortable knowing will perform
Search WWH ::




Custom Search