download and unlock the cocos2dx-0.13.0-wp8-0.8.rar,then run helloworld project ,update the simulator as 1280*720 or 1280*768, run it,the game just display at the leftbottom corner.wht not display on screen fully?
cocos2dx-wp8 is cludeed in my app, there are some codes like this,i think it will give a help for this silght bug
CCEGLView* mainView = new (buff) CCEGLView();
mainView~~>Create;
//mainView~~>setDesignResolution(480, 320);
//mainView~~>setDesignResolution;
mainView~~>setDesignResolution(320, 533);
okie, I try run Sample project Test of cocos2dx0.13 for WP8. I see dont click to Item of menu when run with simulator 720p. but that run good when run
with simulator WVGA. thanks
DISCLAIMER: This solution - while working - is a hack, because right now i am too lazy to try and understand how this actually works. Use at your own discretion
Hi,
I am still struggling with the resolution of WP8.
mainView->setDesignResolution(480, 800);
This works for 400x480 WVGA and 768x1280 WXGA, but not working for 720x1280 720p. For 720p screen, there is a blank 40 pixels on top and another 40 pixels at the bottom. All touch points work correctly.
Any work around to fix the 720p top/bottom dead band ?
Im using wp8 v2.0 preview of wp8 branch, and a WXGA (768, 1280) phone.
My game is designed in Resolution(640, 1066). so i call
mainView->setDesignResolution(640, 1066);
then i have just noticed, in CCEGLView_win8metro.cpp, there is a useless factor calculation in func setViewPortInPoints, its useless because after that calculation factor variable is manually set to 1.0f! then i changed factor variable to 1.2f, since my designed has 640px width (768 / 640 = 1.2f)