diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-14 17:34:40 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-14 17:34:40 -0400 |
commit | 4a1f4a98116b5c59efe0606375b833a722a0d281 (patch) | |
tree | f993765d0022da440199fb109633b0e0113082eb /src/main/JFXaudioPlayer.java | |
parent | 6e2ff44c33226e6d03810ae5fae9645605d3e89d (diff) | |
download | NPEhero-4a1f4a98116b5c59efe0606375b833a722a0d281.tar.gz NPEhero-4a1f4a98116b5c59efe0606375b833a722a0d281.tar.bz2 NPEhero-4a1f4a98116b5c59efe0606375b833a722a0d281.zip |
add levelselector gui, move some files around
Diffstat (limited to 'src/main/JFXaudioPlayer.java')
-rw-r--r-- | src/main/JFXaudioPlayer.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/main/JFXaudioPlayer.java b/src/main/JFXaudioPlayer.java deleted file mode 100644 index 9207c59..0000000 --- a/src/main/JFXaudioPlayer.java +++ /dev/null @@ -1,29 +0,0 @@ -package main; - -import java.io.File; -import java.io.IOException; - -import javafx.application.Application; -import javafx.fxml.FXMLLoader; -import javafx.scene.Parent; -import javafx.scene.media.Media; -import javafx.scene.media.MediaPlayer; -import javafx.stage.Stage; - -public class JFXaudioPlayer extends Application{ - - public static void main(String[] args) - { - launch(args); - } - - @Override - public void start(Stage primaryStage) - { - // primaryStage.show(); - String musicFile = "EXAMPLE.mp3"; // For example - Media sound = new Media(new File(musicFile).toURI().toString()); - MediaPlayer mediaPlayer = new MediaPlayer(sound); - mediaPlayer.play(); - } -}
\ No newline at end of file |