I have a game developed for the iPad and iPhone 4.
There’s a whole set of graphics designed for the iPad, which is the same i use for the iPhone4 (just applying zoomStretch in config.lua).
Everything was doing fine until i tried to get everything for the iPhone 3G.
I made a half-resolution set of graphics, added de suffix “@3G” in config, set it to 0.5 and a “[empty]” suffix set to 1.
Now, on the iPad everything works fine, on the iPhone 4 some images are not loaded in HD, but in LD (for example a 1024x768 background is not loaded, instead, it loads the 512x384 version).
And on the iPhone 3G everything is just wrong, it loads HD, displays thing anywhere, etc…
my config.lua file is as follows
[blockcode]
application =
{
content =
{
fps = 30,
width = 768,
height = 1024,
scale = “zoomStretch”,
imageSuffix=
{
["@3G"]=0.5,
[""]=1,
}
},
}
[/blockcode]
Also, what should i do with sprite sheets? Manually detect the device and use the intended sprite sheet for each case?? [import]uid: 105206 topic_id: 22743 reply_id: 322743[/import]