Building a universal App (iPhone AND iPad)

juzcookjuzcook Member Posts: 259
edited November -1 in Working with GS (Mac)
Just wondering how everyone goes about building iPhone and iPad versions of their games. At this stage I don't actually own an iPad so I can't test out any ideas with this, but I'm contemplating on how I will go about building my next game and whether I can get away with making one build, as opposed to building the game twice.

The game style is going to be a top down RPG, with scene sizes the same as the iPad resolution. So on the iPad there won't be any scrolling, but the iPhone version will.

Can I not just build the game in iPhone mode and when finished make a copy of the game and change the platform to iPad? Obviously I'd have to move the HUD objects around so they're where I want them to be which wouldn't be a problem, but everything should work right?

Comments

  • johanclevejohancleve Member Posts: 24
    This would be my guessing as well, but i'm not sure;
  • TwistedMechTwistedMech Member Posts: 408
    create a global boolean var game.isIPAD so when a level starts, you can set your HUD objects to new x and y positions. You can then switch GS modes, set the variable true and test for both devices in the GS editor. Also because iPad is faster than an iPhone (so I am told - apple slowed the iPhone 4 processor down due to heat issues), you could add extra bits for the iPad version and on scene startup you can do "if game.IsIPAD = false then destroy" on those extra ipad only bits.
  • juzcookjuzcook Member Posts: 259
    Oh yeah I've already worked that part out don't worry ;) I'm just wondering if my thought process would actually work seeing as I have no way of testing it out on a proper device! That would mean making updates to the game later on would be easily done without having to change the position of the HUD in every scene.

    It would be nice if the GSD would allow us to publish and recognise what device is being used so we could combine the two versions into one! I know alot of people feel ripped off knowing they have to buy new iPad specific versions with a markup.

    Back to my first question though, has anyone tested this before without the need to remake the entire game?
Sign In or Register to comment.