From 8ac78ec43ca3f5ef26e2f646cc28afefa8711b1e Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sat, 29 Nov 2014 23:34:01 +0100 Subject: [PATCH] Disable transition effect when entering or leaving game pause. --- src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java | 2 +- src/de/teamteamteam/spacescooter/screen/GameScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java b/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java index f7c603d..fc40c13 100644 --- a/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java @@ -91,7 +91,7 @@ public class GamePausedScreen extends Screen { switch (this.menuPoint) { case 0: //Removes itself from the GameScreen, so the player can continue playing. - this.parent.setOverlay(null); + this.parent.setOverlay(null, false); break; case 1: //Replaces its parents (the GameScreen) parent (the SuperScreen) overlay. diff --git a/src/de/teamteamteam/spacescooter/screen/GameScreen.java b/src/de/teamteamteam/spacescooter/screen/GameScreen.java index f1e8986..40cb763 100644 --- a/src/de/teamteamteam/spacescooter/screen/GameScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/GameScreen.java @@ -92,7 +92,7 @@ public class GameScreen extends Screen { // Pass the collision handler a copy of the entity list CollisionHandler.handleCollisions(); if (Keyboard.isKeyDown(KeyEvent.VK_ESCAPE)) { - this.setOverlay(new GamePausedScreen(this)); + this.setOverlay(new GamePausedScreen(this), false); } //Go to GameOverScreen if the game is actually over.