aboutsummaryrefslogtreecommitdiff
path: root/src/gui/Driver.java
diff options
context:
space:
mode:
authorzxjordan <zxjordan5@gmail.com>2023-06-05 22:48:07 -0400
committerzxjordan <zxjordan5@gmail.com>2023-06-05 22:48:07 -0400
commit144b9e9a16272da2a7cdde01b16dfb83f5353b07 (patch)
treec9876abbe02ee74d68d75e827d9a26da7495e941 /src/gui/Driver.java
parent85037099c9ff60d55501c0ff9a70ccfaccbb95f2 (diff)
parent5f6b84a1d3a4cf1936e7d495d03400ce5c7478f6 (diff)
downloadNPEhero-144b9e9a16272da2a7cdde01b16dfb83f5353b07.tar.gz
NPEhero-144b9e9a16272da2a7cdde01b16dfb83f5353b07.tar.bz2
NPEhero-144b9e9a16272da2a7cdde01b16dfb83f5353b07.zip
Merge branch 'main' of https://gitlab.sowgro.net/npeinc/npehero
Diffstat (limited to 'src/gui/Driver.java')
-rw-r--r--src/gui/Driver.java29
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),