Hello Guest

Author Topic: Mobile Camera Settings  (Read 3201 times)

Codexer

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Mobile Camera Settings
« on: July 19, 2013, 05:32:54 am »
Forgive me if this is a stupid question, but I've been mucking around with the stable release and the beta and I can't seem to work out how is best to do it.

I am developing primarily for iOS devices (iPhone 4/5) the difference in their resolution is in the width. I've read this thread: http://unikronsoftware.com/2dtoolkit/forum/index.php?topic=239.0

Which basically states, to adjust New Ortho Size: NewResolutionHeight / OldResolutionHeight * currentOrthoSize

Is it best to design the game around the iPhone 5 resolution (1136x640), then on start up, do what was suggested and adjust the camera? How does this work with the "new" camera in beta, and is this still the best way to develop for iPhone?

Or is there a way of simply "removing" 136 pixels on the right of the camera when an iPhone 4 is used? Are the "override" settings intended for this? So a resolution of the iPhone 4 could be set as one?

Thanks
« Last Edit: July 19, 2013, 06:40:08 am by Codexer »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Mobile Camera Settings
« Reply #1 on: July 19, 2013, 10:41:33 am »
Design the game around iPhone5 resolution, keeping in mind that the sides can be clipped when it runs on iPhone4. With the new camera, set up an override, and scale = fit vertical. It'll just clip the excess data when running on iPhone4.