diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-05 21:53:17 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-05 21:53:17 -0400 |
commit | 229bd77d401beb005edfca1b3ce387e150ddd21d (patch) | |
tree | 220d4de5d1921829089c6b8b32fa221fdfe9c2a0 /src/gui/Driver.java | |
parent | 1709842a9ac8521f18296a79286a6361aa64bcc1 (diff) | |
download | NPEhero-229bd77d401beb005edfca1b3ce387e150ddd21d.tar.gz NPEhero-229bd77d401beb005edfca1b3ce387e150ddd21d.tar.bz2 NPEhero-229bd77d401beb005edfca1b3ce387e150ddd21d.zip |
add level priority, fix sfx volume, fix settings file reading
Diffstat (limited to 'src/gui/Driver.java')
-rw-r--r-- | src/gui/Driver.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/gui/Driver.java b/src/gui/Driver.java index b588b22..9e09860 100644 --- a/src/gui/Driver.java +++ b/src/gui/Driver.java @@ -14,28 +14,11 @@ import javafx.scene.layout.BackgroundPosition; import javafx.scene.layout.BackgroundRepeat; import javafx.scene.layout.BackgroundSize; import javafx.scene.layout.Pane; -import javafx.scene.media.Media; -import javafx.scene.media.MediaPlayer; -import javafx.scene.media.MediaView; import javafx.stage.Stage; -import javafx.util.Duration; import main.LevelController; import main.SettingsController; import main.SoundController; - -import java.nio.file.Paths; - -import javax.sound.sampled.AudioFileFormat; - -// import javafx.scene.image.ImageView; -// import javafx.beans.property.Property; -// import javafx.util.Duration; -// import javafx.animation.KeyFrame; -// import javafx.animation.KeyValue; -// import javafx.animation.Timeline; - import devmenu.DebugMenu; -import gameplay.SongPlayer; public class Driver extends Application @@ -63,8 +46,6 @@ public class Driver extends Application @Override public void start(Stage newPrimaryStage) { - - primaryStage = newPrimaryStage; Scene primaryScene = new Scene(primaryPane, 800,600); @@ -116,16 +97,6 @@ public class Driver extends Application */ public static void setBackground(String url) //replaces background with a new one { - // Image image1; - // Image image2; - // ImageView imageView; - // KeyFrame keyFrame1On = new KeyFrame(Duration.seconds(0), new KeyValue(imageView.imageProperty(), image1)); - // KeyFrame startFadeOut = new KeyFrame(Duration.seconds(0.2), new KeyValue(imageView.opacityProperty(), 1.0)); - // KeyFrame endFadeOut = new KeyFrame(Duration.seconds(0.5), new KeyValue(imageView.opacityProperty(), 0.0)); - // KeyFrame keyFrame2On = new KeyFrame(Duration.seconds(0.5), new KeyValue(imageView.imageProperty(), image2)); - // KeyFrame endFadeIn = new KeyFrame(Duration.seconds(0.8), new KeyValue(imageView.opacityProperty(), 1.0)); - // Timeline timelineOn = new Timeline(keyFrame1On, startFadeOut, endFadeOut, keyFrame2On, endFadeIn); - primaryPane.setBackground(new Background( new BackgroundImage( new Image(url), |