I have read that currently microsoft method of testing apps for publishing to the windows 8 market include using the simulator that comes with VS2012 to test for various components. These includes orientation change, snapped mode as well screen resolution change. It was mentioned that the app has to handle these changes “gracefully”.
Using the cocos2d-x-for-win8’s template hello world. I tested for the above and the following results:
This is the initial load, with the device in the default landscape mode (resolution default at 10.6" 1366x768)
This is in portrait mode, rotated using the simulator function
This is when the app is in snapped mode.
and this is when the resolution of the simulator has been changed to 10.6" 2560x1440
May I have some advice on how to technically handle the orientation and resolution changes gracefully? Having the view scaled and stretched is not exactly graceful, I’m looking more of detecting the resolution changes and rescaling (maintain aspect ratio) of the objects and repositioning the objects accordingly. A good example of how these changes are handled can be observed in Fruit Ninja for Win8 from the Win8 market.
landscape.png (58.3 KB)