fix: some comments

This commit is contained in:
Laureηt 2021-05-13 20:01:51 +02:00
parent a8e400d22d
commit 93f89c3e64
2 changed files with 6 additions and 7 deletions

View file

@ -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());
}
}

View file

@ -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;