Creating a landscape oriented game using corona sdk

Is there a way to specify if an app/game is landscape or portrait? I can see the default is portrait but wondered if I wanted to make it landscape if there is a setting or if I have to do all my coding and graphics at 90 degrees rotation?

Thanks

Paul

Hi Paul,

yes, via a build.settings file entry.

https://developer.anscamobile.com/content/application-configuration-options

The section about Auto-Rotation is your friend.

@Ansca: After removing the PDF help files, how is someone able to find the information via the search functionality? I prefer a search and printable PDF file anytime over anything else.

Cheers
Michael Hartlef

http://www.whiteskygames.com
http://www.twitter.com/mhartlef

Thanks Mike. That is just what I am after. I am pleased I do not have to code at right angles.

I only want my game to work in landscape mode so assume this is the code I need in my build settings:

1
2
3
4
5
6
7
8
9
10
11
settings =
{
        orientation =
        {
                default = "landscapeRight",
                supported =
                {
                        "landscapeLeft", "landscapeRight"
                },
        },
}

it really most amazing gadget.its good i am thank full to you Canvas Prints its amazing for this century.Hi, It is really nice, but could you tell me how should I use this code,thanks for this information.

I have found lot of interesting and knowledgeable stuff here.Thanks for sharing.
Orange County Website Design

Nice article here i got intresting and knowledgeable things from it.Credit Card Debt Relief Nice post here.

God I hate spammers / spamming-robots -_-

views:2246 update:2011/10/1 9:04:19
corona forums © 2003-2011