Questions regarding the "Universal Apps" Tutorial
by Maritn · in iTorque 2D · 04/11/2012 (1:49 am) · 3 replies
I've gone through the "Universal Apps" tutorial, but there are still some questions left.
1. For iPad and iPhone4, "_hd" images are used. Why do they not have to be added to the level datablocks? I thought that every image has to be added.
2. Again "_hd" images: they are used for both iPad & iPhone4, right? But how can this work? The aspect ration of an iPad is 1.33, while an iPhone4 has 1.5. One of those devices will always have the wrong ratio for the "_hd"-images.
1. For iPad and iPhone4, "_hd" images are used. Why do they not have to be added to the level datablocks? I thought that every image has to be added.
2. Again "_hd" images: they are used for both iPad & iPhone4, right? But how can this work? The aspect ration of an iPad is 1.33, while an iPhone4 has 1.5. One of those devices will always have the wrong ratio for the "_hd"-images.
#2
We detect the device type and set a variable $DEVICE_TYPE to
- blank ""
- "@X2"
- "@X3"
The image name is then:
"/images/some-image" @ $DEVICE_TYPE
You then supply the artwork:
some-image.png
some-image@X2.png
some-image@X3.png
04/12/2012 (7:13 am)
This is the part I never really understood with the 1.5 solution- the aspect ratio, which is why we went for a custom solution.We detect the device type and set a variable $DEVICE_TYPE to
- blank ""
- "@X2"
- "@X3"
The image name is then:
"/images/some-image" @ $DEVICE_TYPE
You then supply the artwork:
some-image.png
some-image@X2.png
some-image@X3.png
#3
@Scott: Yeah, that sounds like a great idea, I'll do it like that as well.
04/13/2012 (1:23 pm)
Thanks for the answers!@Scott: Yeah, that sounds like a great idea, I'll do it like that as well.
Employee Michael Perry
ZombieShortbus
2. You are correct that there is a slight aspect ratio difference between iPad and the non-tablet devices. One of our artists brought it up last week and I am considering different options to resolve this.