From b3f8d14e1af6277914e4a7c1c81082fb95f62d85 Mon Sep 17 00:00:00 2001 From: Aidan Ross Date: Thu, 25 May 2023 16:31:51 -0400 Subject: 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. --- src/gui/LevelSurround.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/LevelSurround.java') 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"); -- cgit v1.2.3