cocos2d-x 2.x 支持多个方向屏幕翻转

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cocos2d-x 2.x 支持多个方向屏幕翻转相关的知识,希望对你有一定的参考价值。

主要改动 RootViewController.mmsupportedInterfaceOrientations 方法

1.四个方向

UIInterfaceOrientationMaskAll

2.三个方向(除了屏幕倒着全部都能够旋转)

UIInterfaceOrientationMaskAllButUpsideDown

3.竖屏两个方向

UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;

4.横屏两个方向

UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight 或

UIInterfaceOrientationMaskLandscape



以上是关于cocos2d-x 2.x 支持多个方向屏幕翻转的主要内容,如果未能解决你的问题,请参考以下文章

cocos2d-x JS 获取屏幕大小或中点

屏幕翻转的解决方法

科尔多瓦方向锁垂直翻转不起作用

我想翻转我的屏幕[关闭]

Cocos2d-x坐标系和图层

Cordova如何翻转整个屏幕正面到背面的3D效果