Author Topic: Designing for both iPhone 4 and iPhone 5 Resolutions  (Read 4692 times)

aikitect

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 27
    • View Profile
Designing for both iPhone 4 and iPhone 5 Resolutions
« on: March 14, 2013, 12:33:18 AM »
Hi, I am currently building an iOS game and am building a title screen which is 640x1136 (iPhone 5).  This works perfectly for the iPhone 5, but as soon as I run it on an iPhone 4, the title screen background texture (640x1136) scales so that the height becomes 960.

What is the best way to deal with this issue?  Should I have two different atlases, one for the iPhone 4, and one for the iPhone 5?  Or is there a way to prevent the 640x1136 texture from scaling down, and just have the top and bottom cropped when it shows up on the iPhone 4?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Designing for both iPhone 4 and iPhone 5 Resolutions
« Reply #1 on: March 14, 2013, 01:19:40 AM »
Setting the UIRoot to pixel-perfect will make the image be cut off instead. Nothing is preventing you from having multiple UIRoots either if you like -- one for the background, another for the game.