diff options
author | Aidan Ross <aross02@fairport.org> | 2023-05-25 16:31:51 -0400 |
---|---|---|
committer | Aidan Ross <aross02@fairport.org> | 2023-05-25 16:31:51 -0400 |
commit | b3f8d14e1af6277914e4a7c1c81082fb95f62d85 (patch) | |
tree | 81d8a8007fa1ac6a246ba093971c1beaeef717bf /src/gui | |
parent | cb9076941d76b4395d19d30076481bfeea35cacb (diff) | |
download | NPEhero-b3f8d14e1af6277914e4a7c1c81082fb95f62d85.tar.gz NPEhero-b3f8d14e1af6277914e4a7c1c81082fb95f62d85.tar.bz2 NPEhero-b3f8d14e1af6277914e4a7c1c81082fb95f62d85.zip |
the main.Level() class is now declared in levelcontroller with the name of the level being read in the assets folder, allowing for different songs in the list.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/LevelSurround.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java index f815982..a94f890 100644 --- a/src/gui/LevelSurround.java +++ b/src/gui/LevelSurround.java @@ -24,6 +24,7 @@ public class LevelSurround extends Pane public LevelSurround(Level level, Difficulty difficulty, Pane prev) { ScoreController sc = new ScoreController(); + SongPlayer game = new SongPlayer(level, difficulty, prev, sc); Button exit = new Button(); exit.setText("Back"); @@ -82,7 +83,6 @@ public class LevelSurround extends Pane comboTextBox.getChildren().addAll(comboLabel,comboDisplay); comboTextBox.setPadding(new Insets(10)); - SongPlayer game = new SongPlayer(level, difficulty, prev, sc); game.minWidthProperty().bind(super.prefHeightProperty().multiply(0.66)); game.minHeightProperty().bind(super.prefHeightProperty()); game.getStyleClass().add("box"); |