Page 800 - 2
P. 800

}
            public void close() {
                    proceed = false;
                    pressed= true;
            }
            public Note(String noteType) {
                    노트 타입에 따라 노트가 그려지는 위치 설정 코드
                    this.noteType = noteType;
            }
            public void screenDraw(Graphics2D g) {
                    if (proceed)
                            g.drawImage(noteImage, x, y, a, a, null);
            }
            public void drop() {
                    if (extend)
                            a += Main.NOTE_SPEED;
                    else
                            a -= Main.NOTE_SPEED;
                    if (a >= Main.NOTE_SIZE)
                            extend = false;
                    if (a < 100&& !extend) {
                            미스판정 코드
                            this.close();
                    }
            }
            public void run() {
                    try {
                            while (true) {
                                    drop();
                                    if (proceed)
                                            Thread.sleep(Main.SLEEP_TIME);
                                    else {
                                            interrupt();
                                            break;
                                    }
                            }
                    } catch (Exception e) {
                            System.err.println(e.getMessage());
                    }
            }
            public void judge() {
                    DynamicBeat.game.keyJudge = true;
                    if ( 각 판정별 노트위치) {
                            판정 점수추가 콤보추가 코드,  ,
                            close();


                                                         - 800 -
   795   796   797   798   799   800   801   802   803   804   805