aboutsummaryrefslogtreecommitdiff
path: root/src/main/NoteTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/NoteTest.java')
-rw-r--r--src/main/NoteTest.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/NoteTest.java b/src/main/NoteTest.java
new file mode 100644
index 0000000..34d9c8c
--- /dev/null
+++ b/src/main/NoteTest.java
@@ -0,0 +1,35 @@
+/*Name:
+ *Date:
+ *Period:
+ *Teacher:
+ *Description:
+ */
+package main;
+import java.awt.*;
+
+public class NoteTest
+{
+ private boolean failed = false;
+ private int lane;
+ private final int NOTESPEED = 1;
+ private int yPos = SongPlayer.HEIGHT;
+
+ public void gameTick() {
+ if (!failed) {
+ if (yPos > 0) {
+ yPos -= NOTESPEED;
+ }
+ else {
+ failed = true;
+ }
+ }
+ }
+
+ public boolean getFailed() {
+ return failed;
+ }
+
+ public int getY() {
+ return yPos;
+ }
+}