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/gameplay/SongPlayer.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/gameplay/SongPlayer.java') diff --git a/src/gameplay/SongPlayer.java b/src/gameplay/SongPlayer.java index e8d6c7b..496a4b0 100644 --- a/src/gameplay/SongPlayer.java +++ b/src/gameplay/SongPlayer.java @@ -13,6 +13,11 @@ import javafx.scene.layout.VBox; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; import javafx.animation.*; +import javafx.beans.Observable; +import javafx.beans.property.IntegerProperty; +import javafx.beans.property.SimpleStringProperty; +import javafx.beans.property.StringProperty; +import javafx.beans.value.ObservableStringValue; import javafx.util.*; import main.Difficulty; import main.ScoreController; @@ -23,6 +28,7 @@ public class SongPlayer extends Pane { final int TIME = 1500; // delay for notes falling down the screen Score scoreCounter = new Score(); + StringProperty scoreString = new SimpleStringProperty(); Rectangle goalPerfect = new Rectangle(); HBox buttonBox = new HBox(); @@ -92,6 +98,7 @@ public class SongPlayer extends Pane { public SongPlayer(main.Level lvl, Difficulty d, Pane p, ScoreController cntrl) { loadSong(); + Rectangle field = new Rectangle(50, 50, new Color(0, 0, 0, 0.7)); field.heightProperty().bind(super.heightProperty()); @@ -278,4 +285,12 @@ public class SongPlayer extends Pane { } return -1; } + + // public ObservableStringValue getScoreString() { + // return + // } + + public int getCombo() { + return scoreCounter.getCombo(); + } } \ No newline at end of file -- cgit v1.2.3