display.newImageRect

Hello!
Does anybody know if it is possible to create image @suffixes for lower resolutions? ex. 0.5x?

[import]uid: 103182 topic_id: 30698 reply_id: 330698[/import]

Yes. In your config.lua:

application =   
{  
 content =  
 {  
 width = 640,  
 height = 960,  
 scale = "letterbox",  
 imageSuffix =   
 {  
 ["@fred"] = 0.5,  
 ["@2x"] = 2.0,  
 ["@4x"] = 4.0,  
 },  
 },  
}  

The suffix can be anything you want it to be. So the above would assume your non-suffixed graphics were for a retina iPhone and your @fred graphics would be half sized for the older iPhones. [import]uid: 19626 topic_id: 30698 reply_id: 123002[/import]

Yes. In your config.lua:

application =   
{  
 content =  
 {  
 width = 640,  
 height = 960,  
 scale = "letterbox",  
 imageSuffix =   
 {  
 ["@fred"] = 0.5,  
 ["@2x"] = 2.0,  
 ["@4x"] = 4.0,  
 },  
 },  
}  

The suffix can be anything you want it to be. So the above would assume your non-suffixed graphics were for a retina iPhone and your @fred graphics would be half sized for the older iPhones. [import]uid: 19626 topic_id: 30698 reply_id: 123002[/import]