Page 803 - 2
P. 803
Image titleImage = new ImageIcon(Main.class.getResource("../images/" + title +
"title.png")).getImage();
g.drawImage(titleImage, 0, 650, null);
} else
g.drawString(title, 10, 700);
if (combo >= 5)
g.drawString("Combo " + combo + "", 100, 100);
g.drawString(difficulty, 1150, 700);
if (keyJudge) {
switch (judge) {
case "Good":
g.setColor(Color.YELLOW);
break;
case "Great":
g.setColor(Color.GREEN);
break;
case "Perfect":
g.setColor(Color.CYAN);
break;
case "Bad":
g.setColor(Color.RED);
break;
default:
g.setColor(Color.GRAY);
}
g.setFont(new Font("Arial", Font.BOLD, 30));
g.drawString(judge, 160, 390);
}
}
public void press1() {
judge("1");
pad1 = new ImageIcon( 파일 위치).getImage();
}
public void release1() {
pad1 = new ImageIcon( 파일 위치).getImage();
}
9 까지 써줍니다.
public void close() {
gameMusic.close();
this.interrupt();
}
public void dropNotes(String title) {
j=0;
if (title.equals(" 곡 이름") && difficulty.equals(" 난이도")) {
- 803 -