Archive for 'Application Content'

enabling retina display mode in corona sdk

for enabling retina display in corona add the following lines in config.lua

application = 
{
	content = 
	{ 
		width = 320,
		height = 480, 
		scale = "letterbox",
		imageSuffix =
			{
				["-x15"] = 1.5,		-- A good scale for Droid, Nexus One, etc.
				["-x2"] = 2,		-- A good scale for iPhone 4 and iPad
			},
	}
}

and include images with twice and 1.5 larger than the original and named as image-x2.png and image-x15.png in the project folder

Setting audio play frequency in Corona

For setting audio play frequency in corona, put the following code in config.lua,

 application =
  {
      content =
      {
         
          audioPlayFrequency = 22050
      },
  }

Supported values are 11025, 22050, 44100.

We Can Build Your App for You. Lets Get Started !