Page 182 - MDP2022-3
P. 182
y += Main.NOTE_SPEED;
if(y > 620) {
System.out.println("Miss");
Main.score = Main.score - Main.Missscore;
if(Main.score < 0) Main.score = 0;
close();
}
}
@Override
public void run() {
try {
while(true) {
drop();
if(proceeded) {
Thread.sleep(Main.SLEEP_TIME);
}
else {
interrupt();
break;
}
}
} catch (Exception e) {
System.err.println(e.getMessage());
}
}
public String judge() {
if(y >= 613) {
System.out.println("Late");
close();
return "Late";
}
else if(y >= 600) {
System.out.println("Good");
close();
return "Good";
}
else if(y >= 587) {
System.out.println("Great");
close();
return "Great";
}
else if(y >= 573) {
System.out.println("Perfect");