cocos2d-x打包的时候默认是横屏,如果要改成竖屏,步骤如下:

1.打开项目

2.打开proj.android

3.编辑AndroidManifest.xml

4. 找到这一句android:screenOrientation=“landscape”,landscape是横屏的意思,要改成竖屏

5.把“landscape”横屏改为"portrait"竖屏

6.保存,重新打包

 

至于屏幕自动旋转的实现,还在研究中......

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-09-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-04-14
  • 2022-12-23
  • 2022-02-14
相关资源
相似解决方案