Application Settings

Hi, I’m new with Corona SDK and I have a question. Do I have to create a new file for Project configuration?? What type of file it have to be?? 

For instance if i want to write

application =

{
content =
{
width = 800,
height = 1200,
}
}

Each and every Corona SDK project has a minimal set of files needed to run:

main.lua – the starting point for your actual code.

config.lua – defines the content area that you use for your app, i.e. the width and height of the virtual screen.  A few other odd parameters are defined here as well.

build.settings – defines orientation, OS specific features for iOS and Android, loads plug-in’s and a few other odd project settings.

Many people can build their app using just these three code files, but in most cases main.lua is just an initialization point and then it goes to additional .lua files that are built as part of the Composer scene manager.

You will also need some additional files too, depending on what OS you’re deploying for.  iOS requires around 18 Icons (.png files).   Android needs 6 icon .png files.   iOS also needs a host of launcher images.  You can learn more about build.settings and the icon and launcher images here:  http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Rob

Each and every Corona SDK project has a minimal set of files needed to run:

main.lua – the starting point for your actual code.

config.lua – defines the content area that you use for your app, i.e. the width and height of the virtual screen.  A few other odd parameters are defined here as well.

build.settings – defines orientation, OS specific features for iOS and Android, loads plug-in’s and a few other odd project settings.

Many people can build their app using just these three code files, but in most cases main.lua is just an initialization point and then it goes to additional .lua files that are built as part of the Composer scene manager.

You will also need some additional files too, depending on what OS you’re deploying for.  iOS requires around 18 Icons (.png files).   Android needs 6 icon .png files.   iOS also needs a host of launcher images.  You can learn more about build.settings and the icon and launcher images here:  http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Rob