Page 799 - 2
P. 799

다 클래스별 프로그램 소스.


            Main클래스
            public static final int SCREEN_WIDTH = 1280;
            public static final int SCREEN_HEIGHT = 720;
            public static final int NOTE_SIZE = 144;
            public static final int NOTE_SPEED = 2;
            public static final int SLEEP_TIME = 10;
            public static final int REACH_TIME = 2;
            public static final int HALF_PAD_SIZE = 77;
            public static final int BAR_HALF_HEIGHT = 47;
            public static final int BAR_HALF_WIDTH = 252;
            public static void main(String[] args) {

            new DynamicBeat();
            }

            Track 클래스
            private String title            // 곡 이름
            private String musicbar
            private String musicenteredbar // 메뉴바 이미지1~2
            private String musicImage       // 곡이미지
            private String selectedMusic    // 곡선택음악
            private String gameMusic        // 게임실행음악
            private boolean isKorean        // 한국어여부
            private int easyMaxScore        //easy 난이도최고점수
            private int hardMaxScore        //hard 난이도최고점수


            + 각 변수별 Getters, Setters +     변수 초기화 생성자


            Beat 클래스
            private int time                // 곡의 현재시간
            private String noteType         // 노트의 타입


            + 각 변수별 Getters, Setters +     변수 초기화 생성자




            Note 클래스
            private Image noteImage = new ImageIcon(~~).getImage();
            int x, y, a = 0;
            private String noteType;
            private boolean proceed = true;
            static boolean pressed = false;
            private boolean extend= true;
            boolean isProceed() {
                    return proceed;
            }
            String getNoteType() {
                    return noteType;


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