Time for action – adding the build.settings file
The build-time properties can be provided in an optional build.settings
file, which uses the Lua syntax. The build.settings
file is used to set the application orientation and autorotation behavior along with a variety of platform-specific build parameters. To add the build.settings
file in your project folder, perform the following steps:
Create a new project folder called
Breakout
on your desktop.In your preferred text editor, create a new file called
build.settings
and save it in your project folder.Type in the following lines:
settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" }, } }
Save and close the file. The
build.settings
file is completed.
What just happened?
The default orientation setting determines the initial launch orientation on the device and the initial orientation of the Corona simulator.
The default orientation doesn't affect Android devices. The orientation...