aboutsummaryrefslogtreecommitdiff
path: root/src/test/NoteTest.java
blob: ce74d56fccf725bf04af78196cf904885ceb0bd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*Name:	
 *Date:
 *Period:
 *Teacher:
 *Description:
 */
package test;
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;
    }
}