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 [import]uid: 7863 topic_id: 1625 reply_id: 301625[/import]

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
[import]uid: 5712 topic_id: 1625 reply_id: 4712[/import]

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:

  
settings =  
{  
 orientation =  
 {  
 default = "landscapeRight",  
 supported =  
 {  
 "landscapeLeft", "landscapeRight"  
 },  
 },  
}  

[import]uid: 7863 topic_id: 1625 reply_id: 4714[/import]

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.

[import]uid: 13054 topic_id: 1625 reply_id: 14802[/import]

I have found lot of interesting and knowledgeable stuff here.Thanks for sharing.
Orange County Website Design [import]uid: 45941 topic_id: 1625 reply_id: 28231[/import]

Nice article here i got intresting and knowledgeable things from it.Credit Card Debt Relief Nice post here. [import]uid: 58932 topic_id: 1625 reply_id: 36039[/import]

God I hate spammers / spamming-robots -_- [import]uid: 51516 topic_id: 1625 reply_id: 36040[/import]