Hi people,
I’m just starting with Windows Phone 8 development and want to try Cocos2DX for that (I’ve already dealt with cocos2d for the iPhone a few years ago…). I’ve sucessfully started and deployed that HelloWorld game that came with this download:
http://cocos2d-x.googlecode.com/files/cocos2dx-0.13.0-wp8-0.8.zip
It’s not the right resolution for my Nokia Lumia 1020, however (which has 1280 x 768), and I wanted to play a bit with the different settings for resolutions etc. in the AppDelegate::initInstance() method. How the hell can I find out the device’s resolution in the code? I have found code examples in this forums (not for WP8) that use a function “getFrameSize()” of the EGLView but the CCEGLView_win8_metro implementation doesn’t have anything like this method.
I want to create a game for Windows 8 Phones with pixel perfect graphics and want to provide dedicated graphics for the different resolutions. So how can I detect the maximum resolution of the device the code is running on?
thanks a lot for your help in advance.
Marco