How to set individual device orientation for individual pages : Corona- SDK

前端 未结 1 692
一生所求
一生所求 2021-01-22 17:16

I\'ve made a game using Corona-SDK. It has 2 scenes: (1) Menu scene and (2) Game scene. I need my app to be supported with two orientations : \'landscapeRight\' and \'landscapeL

相关标签:
1条回答
  • 2021-01-22 17:57

    Sorry, but Corona SDK does not have such capability.

    What you can do is lock into one orientation, and places where you want to support more than one orientation, you can manually check the accelerometer to see if the phone is upside down, and then manually flip your graphics.

    The most easy way to flip the graphics is put them all in a single group centered on the screen, and rotate that group 180 degrees.

    0 讨论(0)
提交回复
热议问题