cocos2d は、コードが iPhone で実行されるか iPad で実行されるかを考慮できることを知っています。
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
}
しかし、cocos2d のコードは、iPhone の画面の両方のサイズを考慮して記述できますか。例えば:
#define xPosition1 120.0
#define xPosition2 240.0
#define xPosition3 360.0
if (iphone5) {
#define xPosition1 142.0
#define xPosition2 284.0
#define xPosition3 426.0
}