Set the Supported Device Orientation

The default iOS Game template is set to work in both portrait and landscape orientation. However, Gloop Drop is designed for landscape only, so you need to restrict the device orientation.

In the Project Navigator, select the gloopdrop project and look at the Deployment Info section in the Project Editor. You need to set a few options in this section.

First, verify that the iPhone and iPad devices are both enabled. Gloop Drop is also designed to work universally, so you need to let the compiler know to target both.

Next, disable the Portrait option and enable Requires full screen as shown in the following image:

You might think that disabling the Portrait option in this section is enough to force landscape ...

Get Apple Game Frameworks and Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.