Up-in-the-Air – commitdiff

You can use Git to clone the repository via the web URL. Download snapshot (zip)
Be a bit more selective about fixing the camera in place
authorJulian Fietkau <git@fietkau.software>
Tue, 15 Oct 2024 01:12:45 +0000 (03:12 +0200)
committerJulian Fietkau <git@fietkau.software>
Tue, 15 Oct 2024 01:12:45 +0000 (03:12 +0200)
main.js

diff --git a/main.js b/main.js
index 3a78f3212f777f34d516d25a4a775b4ca0e09af2..0d207fabb577e06e598a4715dc653eca75df8f8a 100644 (file)
--- a/main.js
+++ b/main.js
@@ -960,7 +960,7 @@ game['fn'].animate = (scene) => {
         game.ui.root.querySelector('.ui-page.title').classList.add('end');
         game['fn'].moveToPage('outro', true);
       }
         game.ui.root.querySelector('.ui-page.title').classList.add('end');
         game['fn'].moveToPage('outro', true);
       }
-    } else if(game.ui.reachedEnd) {
+    } else if(game.ui.reachedEnd && ['title', 'options', 'credits', 'unlock'].includes(game.ui.currentPage)) {
       cameraX = 5;
       cameraY = 0;
     }
       cameraX = 5;
       cameraY = 0;
     }