-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.java
95 lines (67 loc) · 3.29 KB
/
Constants.java
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import java.io.File;
/**
* This class stores the constant value.
*
* @author Team APCSA 2019
* @since 2019-05-22 12:59
*/
@SuppressWarnings("WeakerAccess")
public class Constants
{
/** Number of columns (or keys) */
public static final int NUM_COLS = 4;
/** Width of the world */
public static final int WIDTH = 1200;
/** Height of the world */
public static final int HEIGHT = 800;
/** How many millis is from spawning to hitting the notes? */
public static final int GAME_SPEED_MS = 500;
/** How many millis is from the supposed spawning to the actual spawning? */
public static final int GAME_SPAWNING_OFFSET = -45;
/** How many millis is from the supposed start of music to the actual start? */
public static final int GAME_MUSIC_OFFSET = -50;
/** How many millis is from the supposed start of music to the actual start? */
public static final int GAME_START_OFFSET = 500;
/** How much times easier is the judgement of the game? (less than 1 = harder) */
public static final double GAME_EASY_MULTIPLIER = 2;
/** Where does the first col start? */
public static final int GRAPHIC_COL_OFFSET = 150;
/** How long is between the start of first col and end of last col? */
public static final int GRAPHIC_TOTAL_LENGTH = 400;
/** Landing point of the notes. */
public static final int GRAPHIC_NOTE_LANDING = HEIGHT - 133;
/** Height of the notes */
public static final int GRAPHIC_NOTE_HEIGHT = 30;
/** How high is the keys? */
public static final int GRAPHIC_KEY_HEIGHT = 220; // 140
/** Represents vertical translation: y = m ( x - h ) + k */
public static final int GRAPHIC_KEY_K = 0; // -10
/** Key flash disappear speed */
public static final int GRAPHIC_KEY_FLASH_SPEED = 20;
/** Score displayer x padding (How far are they from the boarder?) */
public static final int GRAPHIC_SCORE_X_PADDING = 30;
/** Darken the wallpaper */
public static final int GRAPHIC_WALLPAPER_DARKEN = (int) (255 * 0.7);
/** Song selection menu: how many songs are displayed each row? */
public static final int SELECTION_ROWS = 5;
/** Song selection menu: how many songs are displayed each col? */
public static final int SELECTION_COLS = 3;
/** Song selection menu: Minimum spacing between two icons. */
public static final int SELECTION_MIN_SPACING = 30;
/** Song selection menu: Padding on the top. */
public static final int SELECTION_TOP_PADDING = 20;
/** Song selection menu: Side length of the song selection covers */
public static final int SELECTION_COVER_SIDE_LENGTH = 204;
/** Song selection menu: Side length of the song selection covers */
public static final int SELECTION_COVER_TEXT_HEIGHT = 30;
/** Song selection menu: Difficulty button spacing */
public static final int SELECTION_DIFF_SPACING = 20;
/** Song selection menu: Difficulty button height ratio */
public static final double SELECTION_DIFF_HEIGHT_RATIO = 30.0 / (174.0 / 3.0);
/** Keys (in 4 columns) */
public static final String[] KEYS = {"D", "G", "J", "L"};
/** Directory to the beatmaps' sub-directories */
public static final File BEATMAP_DIRECTORY = new File("./beatmaps/");
/** Debug or not */
public static final boolean DEBUG_MODE = false;
}