Search code examples
androidiosportraitapportable

using apportable to port to android in portrait view


I made a game using the tutorial, in iphone and ipad the orientation is portrait, however when ported to android, the screen orientation is always in landscape. Is there anyway to force android to play it in portrait?

I have infoplist key in Release.final :

 "infoplists": [
    "./Source/Resources/Info.plist"
], 

Also info.plist shows :

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
</array>

Solution

  • Delete or move FlappyFly.approj and apportable will ask you whether you want portrait or default. I ran into some other problems however. When you click restart, the app crashes. Also the background is black. Also there is a white square in the upper right initially that then goes away. Also some of the obstacles spawn to the left of the flying object after you've already passed them and stick there.