- I saw that cocos2dx is not thinking in pixels but in an abitrary size I set.
Lets say I use 320 and 480 as the abitrary size and then set a button at the position (10,10).
If my actual screen size is 640*960 (2x as big), my button will appear at the pixel coordinate (20,20) ?
As tablets have a much different screen size, can I develop a different design for tablets?
Screen DPI matters a lot.
-
A Label: Do I just take my normal text size (e.g. 20) and multiply it by the density (e.g. 2x) -> my new used size will be 40 or is Cocos handling this?
-
Is there a listener for common gestures like zooming (pinching)?
-
I have a tile map.
Do I set a button for every touchable tile in my game and add a lambda function to handle touches
or
do I place a big button over everything an handle it myself (pixel to tile conversion)?