So my game starts in Vertical orientation and then eventually goes to Horizontal orientation. I know that the width of the screen is the width of the screen and the same wit
Yes the screen width and height change depending on the device orientation. You can get the size of a display with Display.getSize(Point outSize)
which is a replacement for the deprecated methods Display.getHeight
and Display.getWidth
. From the docs: This value is adjusted for you based on the current rotation of the display.
wanted to add that on my tablet when running full screen apps it will run 1280 x 753 (not 800 because of the bottom bar). 753 is what is returned from getSize. When the orientation flips.. it's 1280px - 47px