Quantcast
Viewing all articles
Browse latest Browse all 17103

Resolution and touch issue with cocos2dx 3.x windows phone 8.1 universal project

@zanzmera_lalu wrote:

Hello,
I am working on windows phone game development on cocos2dx 3.4 with windows 8.1 universal project for development, When I am testing my game on phone it run with very low resolution and I found out the reason behind that, which is SwapChainPanel which lowers resolution for better performance but I want to run in actual phone screen resolution so I came up with solution by setting render surface size using below code

 mCustomRenderSurfaceSize = Windows::Foundation::Size(800,480);
 mUseCustomRenderSurfaceSize = true;
 mOpenGLES->CreateSurface(swapChainPanel, mUseCustomRenderSurfaceSize ?  &mCustomRenderSurfaceSize : nullptr);

After this solution, game resolution problem is solved but now another problem has occurred, regarding touch points, which is still in old resolution so right and bottom controls are not accessible.

Please give some advice or let me know if I am missing something on this issue.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>