diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-03 22:50:43 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-03 22:50:43 -0400 |
commit | 95a82dc15a17a3fe16d34a1cc3c2ec5b46129c73 (patch) | |
tree | af87cffaf5009a055351a1210723ca579e6d2bcc /apcs/NoteTest.java | |
parent | 291cf3bbfbd316f6acdb6d686470113ab91f53b6 (diff) | |
download | NPEhero-95a82dc15a17a3fe16d34a1cc3c2ec5b46129c73.tar.gz NPEhero-95a82dc15a17a3fe16d34a1cc3c2ec5b46129c73.tar.bz2 NPEhero-95a82dc15a17a3fe16d34a1cc3c2ec5b46129c73.zip |
more file management
Diffstat (limited to 'apcs/NoteTest.java')
-rw-r--r-- | apcs/NoteTest.java | 35 |
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; + } +} |