How to deal with iPad orientation requirements for portrait only game

My game is portrait only and I have read that Apple require that I support portrait and portrait upside down for iPad games.

This is proving really annoying as the way my game works, I need to be able to rotate the iPhone/iPad without my game rotating.

Anyone have any ideas how to deal with this? [import]uid: 7863 topic_id: 7292 reply_id: 307292[/import]

I could imagine that Apple will not force unreasonable orientation requirements onto your game if there’s only one orientation which makes sense. For instance, I have several iPad games out which are more like board games, so they look good from any direction and may not even have a “real” main direction to look at, and so there won’t be any orientation change after startup. That being said, on the iPad (which I figure is more likely to be held “upside down”), perhaps there is a way you could start with either portrait directions the user chooses, but then “lock” this direction? (If that’s possible with Corona.) [import]uid: 10284 topic_id: 7292 reply_id: 25640[/import]

Thanks for the reply Philip

I have since found a site that states that I must support both portrait orientations.

I would be interested to know how to lick the orientation after the player has clicked to start the game. [import]uid: 7863 topic_id: 7292 reply_id: 25715[/import]

As an example, suppose my game was a game of chess. If I have it set to support both portrait and portrait upside down, when player 1 starts he holds the phone in portrait mode and sees his pieces at the bottom of the screen.

Now when it is player 2 turn, player 2 would like to view his pieces at the bottom of the screen so he rotates the phone 180 degrees to do so. However due to the requirement to support portrait upside down, the screen rotates 180 degrees so there is no way to hold the phone in portrait orientation and get player 2 pieces at the bottom of the screen.

Does this make sense? And if so, any suggestions? [import]uid: 7863 topic_id: 7292 reply_id: 25870[/import]

Mediakitchen, again I think it’s likely that Apple does not force both orientations on you when it doesn’t make sense at all. I have several iPad games out which are fully orientation-locked yet they were approved. Only at one time did I have to resubmit, because the lock didn’t make too much sense in the context of the game. *However*, one thing you might need to do is to have menus etc. in your game support both orientations.

For an example, have a look at my game Spikeball (free, for the iPad). There are two menu buttons, at both ends of the portrait screen. If player 1 opens their menu, it will pop up in their direction – if player 2 opens their other menu, it will pop up “rotated” towards their direction. All I did in my handler function on top of Corona was to make sure that there’s a 180 degrees rotation for all the menu images and button coordinates when the button was pressed by player 2…

Good luck, hope this helps. Worst case, you could try submit and see what Apple does and how they react… [import]uid: 10284 topic_id: 7292 reply_id: 25872[/import]

Thanks Philipp

I have had a look at the screenshots for Spike Ball. Unfortunately I don’t own an iPad to have a play.

I guess the orientation issue doesn’t affect a game when it is played on a flat table surface but only when holding the iPad upright.

Yes good point about the menus for both orientations. I did create the required graphics for this. Thinking about it now, I guess it is a case of having my scoreboard rotate and move to opposite end of screen every time the player turn changes if I have the orientation locked to only one portrait orientation.

Or if I go with both portrait orientations, I could instead just rotate my game screen and leave the scoreboard as it is.

One solution works better if the 2 players are playing with the iPad on a table and they are face to face and the other works better if they 2 players are sat next to each other and passing the phone to each other and holding the phone upright.

Hmm… [import]uid: 7863 topic_id: 7292 reply_id: 25881[/import]

Out of interest, would it be possible to support both portrait and portrait upside down for everything apart from the two player mode?

And in the 2 player mode, ideally I should have the option to specify if face to face or sat next to each other on a bench and holding the device upright.

If face to face and device on a table, then the game orientation should not change but the scoreboard that includes the menu buttons would appear at either end of the screen depending on whos turn it is.

If next to each other then when changing from one player to the other then either the game element would need to rotate 180 degrees or the player should be able to rotate the phone 180 degrees without the phone detecting this rotation and it then rotating the screen back again.

Am I making a mountain out of a mole hill here or does this seem like a valid requirement? [import]uid: 7863 topic_id: 7292 reply_id: 25887[/import]