Game Development Community

Support for the new iPad? - (LOGGED)

by Vijay · in iTorque 2D · 04/06/2012 (11:10 pm) · 4 replies

I can't seem to find any useful information about iTorque 2D on the new iPad (aka iPad 3). The engine doesn't have built-in support for it but is it easy enough add support for it? Is an update planned to officially support the resolution?

Thanks in advance!

#1
04/09/2012 (9:46 am)
It took me a little over a week to modify iT2D 1.5; so that I could update Force of Attraction for the new iPad (which was accepted by Apple).

You have to modify the source and a bunch of script files (in addition to doing all the resource changes for the retina display). The task was non-trivial, but I got it to work. The trick is to detect whether or not there is doubling happening (see the example code for the retina iPhone) if the code already knows the device is an iPad. Then, the solution is obvious.

I'm sure that the good people at GG knocked out a solution in a couple of hours. I would be amazed if it were not included in iT2D 1.5.1.

#2
04/11/2012 (1:24 pm)
Thanks for the detailed response Don! That's very helpful. I was digging through the code some more and can understand that it's non-trivial. While quickly hacking up a solution might be quicker, I think a few basic changes need to be made to make the whole thing more robust and future-proof. I plan to do some of this work soon.
#3
04/13/2012 (7:58 am)
I certainly didn't write my code to be future-proof; just to make my current game work with the new iPad. With all of the optimizations that 1.5.1 will bring (and support for the new iPad, I would assume); I'll use that whenever GG puts it out. However, since it could be several months before that happens; I needed something now.

My code doesn't work for a Universal app (mostly because I didn't care); which is why I didn't share my hack with the community.
#4
04/13/2012 (12:28 pm)
Well after testing I can tell you this much that works for certain with the new iPad. If you built your app as a Universal app, maybe as iPad as well (didn't test that yet), using XCode 4.2 then it should work just fine on the new iPad. Obviously it won't make use of the retina display though. However, if you used XCode 4.3 then some of the retina code ends up getting activated and controls get offset.