Sebastian
Dec 30, 2012 - 23:57
Is there any way to determine if a script is run on an iPhone or an iPad?
I'm creating a game and I want it to be able to run both on an iPhone and an iPad.
Like for instance:
class Alien(object):
def __init__(self):
self.width = 60 if run_on_ipad else 30