O'Reilly logo

Getting Started with SpriteKit by Jorge Jordán

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with screen resolutions

As mentioned previously, iOS games can be executed on devices with different resolutions and screen sizes. This is the reason why it's important to keep in mind the following table, which shows the different families of resolutions and their required file names:

 

iPhone 6 Plus

iPhone 6

iPhone 4s, iPhone 5

iPad Retina

iPad

Devices

iPhone 6 Plus, iPhone 6s Plus

iPhone 6, 6s

iPhone 4s

iPhone 5, 5C, 5S

iPod Touch 5G

iPad Air, Air 2, iPad mini Retina

iPad, iPad 2, iPad mini

Resolution

1242 x 2208

750 x 1334

640 x 960

640 x 1136

1536 x 2048

768 x 1024

File name

file@3x.png

file@2x~iphone.png

file@2x.png

file@2x~ipad.png

file@1x.png

Note that we are showing the devices supported by iOS 9, which is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required