aboutsummaryrefslogtreecommitdiff
path: root/src/main/NoteTest.java
blob: 34d9c8cb7f88f284c6c3675d2fde70e768abd10b (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 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;
    }
}