From 8bb4283f7969fdd9feae3537dbb584f97ecb414b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 10 Dec 2022 21:54:03 +0600 Subject: Menu music for mobile friends --- core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/src/com/ilotterytea/maxoning/screens') diff --git a/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java b/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java index 9bf9365..f97452b 100644 --- a/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java @@ -2,6 +2,7 @@ package com.ilotterytea.maxoning.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; +import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; @@ -55,6 +56,9 @@ public class MobileMenuScreen implements Screen { TextureAtlas brandAtlas = game.assetManager.get("sprites/gui/brand.atlas", TextureAtlas.class); sav = GameDataSystem.load("latest.sav"); + Music menuMusic = game.assetManager.get("mus/menu/mus_menu_loop.ogg", Music.class); + menuMusic.setLooping(true); + menuMusic.play(); // Background: bg = new MovingChessBackground( -- cgit v1.2.3