aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAidan Ross <aross02@fairport.org>2023-05-25 16:31:51 -0400
committerAidan Ross <aross02@fairport.org>2023-05-25 16:31:51 -0400
commitb3f8d14e1af6277914e4a7c1c81082fb95f62d85 (patch)
tree81d8a8007fa1ac6a246ba093971c1beaeef717bf /src/gui
parentcb9076941d76b4395d19d30076481bfeea35cacb (diff)
downloadNPEhero-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.java2
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");