diff options
| author | ilotterytea <iltsu@alright.party> | 2022-12-10 20:15:25 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-12-10 20:15:25 +0600 |
| commit | be98070581da2b5fe5b4fc391a9fa21d49b819eb (patch) | |
| tree | 690e223b6017a60c72dde06a1f989b42e3941a1c | |
| parent | 3d0a5fbc693b0f2e93325c88bb8ec565d2f0539f (diff) | |
Enabled the music.
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/MenuScreen.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java index 1938b4c..9f76f69 100644 --- a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java @@ -81,6 +81,7 @@ public class MenuScreen implements Screen { // Main Menu music: this.menuMusic = game.assetManager.get("mus/menu/mus_menu_loop.ogg", Music.class); + menuMusic.setLooping(true); // // Menu table: float iconSize = 64f, iconPad = 6f; @@ -200,6 +201,8 @@ public class MenuScreen implements Screen { } @Override public void show() { + if (game.prefs.getBoolean("music", true)) menuMusic.play(); + // Start to render: render(Gdx.graphics.getDeltaTime()); } |
