summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/com/ilotterytea/maxoning/screens/GameScreen.java7
-rw-r--r--core/src/com/ilotterytea/maxoning/screens/MenuScreen.java8
2 files changed, 9 insertions, 6 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java
index e548b20..ce3bbed 100644
--- a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java
+++ b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java
@@ -72,11 +72,10 @@ public class GameScreen implements Screen, InputProcessor {
items.add(MaxonItemRegister.get(id));
}
- // Make the background a little dimmed:
- blackBg = new Image();
- blackBg.setColor(0f, 0f, 0f, 1f);
+ // Make the background a little darker:
+ blackBg = new Image(environmentAtlas.findRegion("tile"));
+ blackBg.setColor(0f, 0f, 0f, 0.5f);
blackBg.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
- blackBg.addAction(Actions.parallel(Actions.alpha(0.25f)));
stage.addActor(blackBg);
// Setting the background for inventory:
diff --git a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java
index 5e98c0a..663a97c 100644
--- a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java
+++ b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java
@@ -60,10 +60,14 @@ public class MenuScreen implements Screen, InputProcessor {
// Main Menu music:
this.menuMusic = game.assetManager.get("mus/menu/mus_menu_loop.ogg", Music.class);
+ // Make the background a little darker:
brandLogo = new Image(brandAtlas.findRegion("brand"));
- blackBg = new Image();
+ blackBg = new Image(environmentAtlas.findRegion("tile"));
- blackBg.setColor(0f, 0f, 0f, 1f);
+ blackBg.setColor(0f, 0f, 0f, 0.25f);
+ blackBg.setSize(stage.getWidth(), stage.getHeight());
+
+ stage.addActor(blackBg);
this.startLabel = new Label(game.locale.TranslatableText("menu.pressStart"), skin, "press");
this.infoLabel = new DebugLabel(skin);