aboutsummaryrefslogtreecommitdiff
path: root/NoteField.java
diff options
context:
space:
mode:
authortferrari25 <tferrari25@HS-234-21.fcsd.monroe.edu>2023-05-10 23:26:13 -0400
committertferrari25 <tferrari25@HS-234-21.fcsd.monroe.edu>2023-05-10 23:26:13 -0400
commitfae5cc1d77590caff6f9c1f2abfbe0a90e3d2173 (patch)
treec4e88e5399143829074c5484268bcbc0c396938c /NoteField.java
parent49bcaaabbc4996ff790e4253bad9deadf3ffe42b (diff)
downloadNPEhero-fae5cc1d77590caff6f9c1f2abfbe0a90e3d2173.tar.gz
NPEhero-fae5cc1d77590caff6f9c1f2abfbe0a90e3d2173.tar.bz2
NPEhero-fae5cc1d77590caff6f9c1f2abfbe0a90e3d2173.zip
Downgrade to JavaFX 15.0.1 and add Windows configs
Diffstat (limited to '')
-rw-r--r--NoteField.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/NoteField.java b/NoteField.java
deleted file mode 100644
index b54e33a..0000000
--- a/NoteField.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*Name: Guitar Hero Project
- *Description: Contains the information for a single note on the field
- */
-package cs;
-
-public class NoteField
-{
- private boolean failed = false;
- private final int NOTESPEED = 5;
- private int yPos = SongPlayer.HEIGHT;
-
- public void gameTick() {
- if (!failed) {
- if (yPos > 0) {
- yPos -= NOTESPEED;
- }
- else {
- failed = true;
- }
- }
- }
-
- public int goalDistance() {
- return (yPos-((SongPlayer.HEIGHT)/6));
- }
-
- public boolean getFailed() {
- return failed;
- }
-
- public int getY() {
- return yPos;
- }
-}