v2.5.0: adjusted panning behaviour to be purely based on game dimensions

This commit is contained in:
Evan Debenham
2024-09-09 13:06:45 -04:00
parent d7b2f461e8
commit d6c79d38e9

View File

@@ -523,7 +523,7 @@ public class InterlevelScene extends PixelScene {
}
//slowly pan the background side to side in portait mode, if story text is displayed
if (btnContinue != null && !textFadingIn && !landscape()){
if (btnContinue != null && !textFadingIn && Game.width < Game.height){
if (background.speed.isZero() && background.acc.isZero()){
background.acc.x = background.center().x >= Camera.main.width ? -1f : 1f;
} else {