I have two images for different resolutions (image.png (200x200) and image@2x.png (400x400))
I write my code:
[lua]
local bitmap1 = Bitmap.new(Texture.new("image.png"))
stage:addChild(bitmap1)
[/lua]
How do I know which image was loaded in code image.png orimage@2x.png?
Comments
If you set Logical Dimension = 320x480 (iPhone) then you run it with iPhone resolution (Gideros Player->Hardware->Resolution->320x480 Iphone) it will load image.png
Else if you run it with iPhone4 or iPhone5 resolution it will load image@2x.png
(assuming that you already set suffix = @2x and scale = 2 in project properties)
Likes: vitalitymobile
Ultimate Games on Appstore
Ultimate Games on Google Play
If the scale factor on a particular device is greater than the number you specify for the Image Scales (in project properties), Gideros will use those assets.
It is clear, I just thought that may have standard tools for this.
Likes: vitalitymobile