Disable transition effect when entering or leaving game pause.
This commit is contained in:
parent
0221bb957d
commit
8ac78ec43c
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue