Remove: useless files and music
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -15,8 +15,7 @@ import javafx.scene.input.KeyCode;
|
|||||||
import javafx.scene.input.KeyEvent;
|
import javafx.scene.input.KeyEvent;
|
||||||
import javafx.scene.input.KeyCombination;
|
import javafx.scene.input.KeyCombination;
|
||||||
import javafx.scene.layout.StackPane;
|
import javafx.scene.layout.StackPane;
|
||||||
import javafx.scene.media.Media;
|
|
||||||
import javafx.scene.media.MediaPlayer;
|
|
||||||
import javafx.scene.paint.Color;
|
import javafx.scene.paint.Color;
|
||||||
import javafx.scene.shape.Rectangle;
|
import javafx.scene.shape.Rectangle;
|
||||||
import javafx.stage.Screen;
|
import javafx.stage.Screen;
|
||||||
@@ -67,8 +66,6 @@ public class GUI extends Application implements IView {
|
|||||||
private boolean autoReenterFullscreen = true;
|
private boolean autoReenterFullscreen = true;
|
||||||
/** Guards against overlapping fade transitions. */
|
/** Guards against overlapping fade transitions. */
|
||||||
private boolean isFading = false;
|
private boolean isFading = false;
|
||||||
/** Background music player looping indefinitely. */
|
|
||||||
private MediaPlayer bgMusic;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -156,15 +153,6 @@ public class GUI extends Application implements IView {
|
|||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
Platform.runLater(() -> primaryStage.setFullScreen(true));
|
Platform.runLater(() -> primaryStage.setFullScreen(true));
|
||||||
|
|
||||||
try {
|
|
||||||
String musicUrl = getClass().getResource("/Audio/Music.mp3").toExternalForm();
|
|
||||||
bgMusic = new MediaPlayer(new Media(musicUrl));
|
|
||||||
bgMusic.setCycleCount(MediaPlayer.INDEFINITE);
|
|
||||||
bgMusic.setVolume(0.4);
|
|
||||||
bgMusic.play();
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.err.println("Audio unavailable: " + e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user