GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Device detection question about iPad...

Hey all! Long story short i'm making an iPhone only game. Meaning there is currently no plans for universal binary at the moment. However inside my game is both an iphone4 and iphone5 version. A startup rule looks at your screen width and sends you to the appropriate version.

My question is a simple one- do i have to add a rule that also says if screen width is 1024 go to iphone4 version? Or does it automatically go in the direction of screen width 480 (i.e. iPhone 4 version)?
I believe it will, but i don't understand why?

Thanks so much!

Comments

  • SinSquidSinSquid Posts: 135Member, PRO
    I think it will automaticly go to the deafault size in you project. If you have a later version of gamesalad and Iphone selected, it will go to the iphone 5 size, if you have iphone legacy seleted it will go to iphone 4 size. But since you are doing this already, why not make it universal, with an ipad version? :) it souch a small step when you already are detecting devices. :)
  • anatomyofdreamsanatomyofdreams Posts: 723Member
    I was waiting for someone to say "why not go universal" haha. My game is not an easy fix. Its gigantic! It also has tons of different game types etc. To make it universal (properly, without quick fix stretching solutions, etc.) would take another six or so months. So this is by no means a small step. You're looking at a complete overhaul and redesign. I've already had to take 2 months just to make the conversion for iPhone 5.

    Anyways, so how can i work around this? Just have a rule that says "if width is 1024 then go to iPhone 4 version?" Will that work? Thanks!
  • ChakkuChakku Posts: 1,513Member


    Anyways, so how can i work around this? Just have a rule that says "if width is 1024 then go to iPhone 4 version?" Will that work? Thanks!

    @anatomyofdreams
    1024 is for iPads 1 and 2/iPad Mini, not for iPhone 4! ;)

    Chakku
  • anatomyofdreamsanatomyofdreams Posts: 723Member
    @chakku i need it to go to the iphone4 version because that's the closer resolution to it. Its not a universal app. It can either go to the iPhone 4 dimensions or iPhone 5 dimensions.
    So i just need to know if i need to say that IF width is 1024 to go to iPhone 4 version of game. Thanks
  • ChakkuChakku Posts: 1,513Member

    @chakku i need it to go to the iphone4 version because that's the closer resolution to it. Its not a universal app. It can either go to the iPhone 4 dimensions or iPhone 5 dimensions.
    So i just need to know if i need to say that IF width is 1024 to go to iPhone 4 version of game. Thanks

    @anatomyofdreams
    I understand that it is not a universal app, but unless it's is opened on an iPad, it will never be 1024.

    Although if you are trying to make it run the iPhone 4 resolution when it opens on an iPad, then what you said sounds about right :)

    Chakku
  • anatomyofdreamsanatomyofdreams Posts: 723Member
    @chakku my question is, IF an iPad user plays the game, do i need to put in code that says IF width is 1024 than go to iphone4 version. Or will it just automatically register as an iphone4 device (i.e. width 480)
    Thx
  • ChakkuChakku Posts: 1,513Member
    I believe that you DON'T need that extra rule, as it should stretch the iPhone 4's resolution, but be sure to double check that as I'm only 99.999% sure ;)

    Chakku
  • anatomyofdreamsanatomyofdreams Posts: 723Member
    @chakku thanks. Haha but perhaps i'm not explaining myself properly.
    Let me start again.
    Upon game start there are two possible paths. Go to the iPhone 4 version or the iPhone 5 version. The logic says IF width is 480 then go to iPhone 4 version. IF width is 568 then go to iPhone 5 version. The end.
    If i were to leave this logic as is, would an iPad user be directed to the iPhone 4 version? I.E. does an iPad register 480 as its resolution since its in an emulation mode (i.e. 2x zoom mode).?

    And lastly, does the latest iPad (4) have a greater resolution than 1024 that i need to be aware of in concern of this subject? Thanks!
  • SnapFireStudiosSnapFireStudios Posts: 1,603Member
    @anatomyofdreams - I'd like to know also :)
    - Thomas

    Ignore females. Acquire currency.

  • anatomyofdreamsanatomyofdreams Posts: 723Member
    @snapfirestudios i never heard back from anyone but i did some tests.
    I had two different paths. One was a path that said if screen width is 480 or 1024 then go to X. The other said if width is 568 go to Y. I tried this on an iPad 1 and iPad 4. Both registered the 480 or 1024 link. So i guess you don't need to put in a code for 2048 which i believe is the new iPad. But i could be completely wrong about that.
This discussion has been closed.