aboutsummaryrefslogtreecommitdiff
path: root/apcs/NoteTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'apcs/NoteTest.java')
-rw-r--r--apcs/NoteTest.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/apcs/NoteTest.java b/apcs/NoteTest.java
new file mode 100644
index 0000000..310325b
--- /dev/null
+++ b/apcs/NoteTest.java
@@ -0,0 +1,35 @@
+/*Name:
+ *Date:
+ *Period:
+ *Teacher:
+ *Description:
+ */
+package apcs;
+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;
+ }
+}