I have multiple classes that implement Screen
.
I want to, say, have the Main Menu screen portrait
, then the Play Screen landscape
. Is there anyway of changing the orientation
dynamically?
I thought I could just start another Activity
and have the Play Screen extend Game
. And the new Activity
would intialize
the Play Screen. But it appears that you can't call startActivity
or the like, obviously, as LibGDX
is platform independent.
I use Gdx.graphics.getWidth()
and Gdx.graphics.getHeight()
to align Sprites
and Actors
so it looks "right" on different devices.
I've also tried swapping the Gdx.graphics.getWidth()
and Gdx.graphics.getHeight()
, respectively, but can't seem to get the position of sprites and actors correct.