飞溅屏幕是横向,虽然整个游戏是在纵向模式。 SpriteBuilder + cocos2d [英] Splash screen is landscape although the whole game is in the portrait mode. SpriteBuilder + cocos2d
问题描述
当我在Xcode模拟器中运行SpriteBuilder cocos2d项目时,初始屏幕是横向模式,整个游戏是纵向模式,因为我在SpriteBuilder项目设置中设置它。模式在.plist文件中设置为纵向,并且在我用自己和删除的默认横向图像替换默认纵向图像后,它只会以横向模式显示我的纵向闪光图像。如何修复?
When I run SpriteBuilder cocos2d project in Xcode Simulator, splash screen is landscape and the whole game after it is in the portrait mode, as I set it in SpriteBuilder project settings. Mode is set portrait in the .plist file, and after I replaced default portrait image with my own and deleted default landscape images, it just shows my portrait splash image in the landscape mode. How to fix it?
推荐答案
我检查的.plist实际上是由cocos2d框架或SpriteBuilder生成的.plist文件。我还必须在本机Xcode .plist文件中更改支持的接口方向
- 我只是没有看到它,并认为,另一个.plist文件是唯一的,可。
The .plist, I checked, was actually a .plist file generated by cocos2d framework or SpriteBuilder. I also must change Supported interface orientations
in the native Xcode .plist file - I just didn't see it and thought, that another one .plist file is the only one, that can be.
这篇关于飞溅屏幕是横向,虽然整个游戏是在纵向模式。 SpriteBuilder + cocos2d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!