diff --git a/core/src/sagittarius/SagittariusGame.java b/core/src/sagittarius/SagittariusGame.java index 10480e6..900c979 100644 --- a/core/src/sagittarius/SagittariusGame.java +++ b/core/src/sagittarius/SagittariusGame.java @@ -3,9 +3,7 @@ package sagittarius; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.kotcrab.vis.ui.VisUI; -import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.audio.Music; -import com.badlogic.gdx.files.*; import sagittarius.view.*; public class SagittariusGame extends Game { @@ -30,16 +28,19 @@ public class SagittariusGame extends Game { @Override public void create() { - - /* A welcome music is played */ + + // A welcome music is played music = Gdx.audio.newMusic(Gdx.files.internal("core/assets/sounds/Ghostrifter-Deflector.mp3")); music.play(); // Default volume music.setVolume(0.3f); + // We load the VisUI library VisUI.load(); - game.setScreen(new SettingsScreen()); + + // we set the Screen to the main menu + game.setScreen(new StartScreen()); } } diff --git a/core/src/sagittarius/view/SettingsScreen.java b/core/src/sagittarius/view/SettingsScreen.java index 675c536..77e5dc9 100644 --- a/core/src/sagittarius/view/SettingsScreen.java +++ b/core/src/sagittarius/view/SettingsScreen.java @@ -1,13 +1,11 @@ package sagittarius.view; import com.badlogic.gdx.Gdx; -import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener; import com.badlogic.gdx.utils.Align; import com.kotcrab.vis.ui.VisUI; import com.kotcrab.vis.ui.widget.VisCheckBox; -import com.kotcrab.vis.ui.widget.VisLabel; import com.kotcrab.vis.ui.widget.VisTable; import com.kotcrab.vis.ui.widget.VisTextButton; import com.kotcrab.vis.ui.widget.spinner.SimpleFloatSpinnerModel;