Go to the documentation of this file.
43 #define HOLD_ALL_DPAD_AND_C_BUTTONS (U_JPAD | L_JPAD | R_JPAD | D_JPAD | U_CBUTTONS | L_CBUTTONS | R_CBUTTONS | D_CBUTTONS)
48 #define DEBUG_MENU_DISABLED 1
49 #define DEBUG_MENU_DEBUG_MODE 2
50 #define DEBUG_MENU_COURSE 3
51 #define DEBUG_MENU_SCREEN_MODE 4
52 #define DEBUG_MENU_PLAYER 5
53 #define DEBUG_MENU_SOUND_MODE 6
54 #define DEBUG_MENU_GIVE_ALL_GOLD_CUP 7
55 #define DEBUG_MENU_EXITED 64
60 #define DEBUG_GOTO_RACING 0
61 #define DEBUG_GOTO_ENDING_SEQUENCE 1
62 #define DEBUG_GOTO_CREDITS_SEQUENCE_CC_50 2
63 #define DEBUG_GOTO_CREDITS_SEQUENCE_CC_EXTRA 3
68 #define DEMO_MODE_ACTIVE 1
69 #define DEMO_MODE_INACTIVE 0
72 #define COURSE_TIMER_ITER 0.020041665999999999
74 #define COURSE_TIMER_ITER 0.01666666
77 #define V_BlANK_TIMER_ITER 0.01666666
85 #define PLAYER_INACTIVE 0
86 #define PLAYER_UNKNOWN_0x40 (1 << 6)
87 #define PLAYER_INVISIBLE_OR_BOMB (1 << 8)
88 #define PLAYER_STAGING (1 << 9)
89 #define PLAYER_UNKNOWN (1 << 10)
90 #define PLAYER_CINEMATIC_MODE (1 << 11)
91 #define PLAYER_CPU (1 << 12)
92 #define PLAYER_START_SEQUENCE (1 << 13)
93 #define PLAYER_HUMAN (1 << 14)
94 #define PLAYER_EXISTS (1 << 15)
97 #define PLAYER_HUMAN_AND_CPU PLAYER_EXISTS | PLAYER_HUMAN | PLAYER_CPU | PLAYER_START_SEQUENCE
99 #define ZERO_PLAYERS_SELECTED 0
100 #define ONE_PLAYERS_SELECTED 1
101 #define TWO_PLAYERS_SELECTED 2
102 #define THREE_PLAYERS_SELECTED 3
103 #define FOUR_PLAYERS_SELECTED 4
104 #define SELECTED_PLAYER_DEFINES_TOTAL 5
108 #define PLAYER_THREE 2
109 #define PLAYER_FOUR 3
111 #define NUM_PLAYERS 8
113 #define MARIO_SIZE 0.75f
114 #define LUIGI_SIZE 0.75f
115 #define YOSHI_SIZE 0.75f
116 #define TOAD_SIZE 0.75f
117 #define DK_SIZE 0.75f
118 #define WARIO_SIZE 0.75f
119 #define PEACH_SIZE 0.75f
120 #define BOWSER_SIZE 0.75f
123 #define MAX_NUM_MAIN_MENU_GAME_TYPES 3
129 #define TIME_TRIALS 1
153 #define MUSHROOM_CUP 0
156 #define SPECIAL_CUP 3
178 #define OPTIONS_MENU 5
180 #define COURSE_DATA_MENU 7
181 #define LOGO_INTRO_MENU 8
182 #define CONTROLLER_PAK_MENU 9
183 #define START_MENU 10
185 #define PLAYER_SELECT_MENU 12
186 #define COURSE_SELECT_MENU 13
187 #define RACING_DUPLICATE 14
192 #define START_MENU_FROM_QUIT 0
193 #define MAIN_MENU_FROM_QUIT 1
194 #define PLAYER_SELECT_MENU_FROM_QUIT 2
195 #define COURSE_SELECT_MENU_FROM_QUIT 3
197 #define ENDING_SEQUENCE 5
198 #define CREDITS_SEQUENCE 9
203 #define BLANK_MAIN_MENU 0
204 #define OPTIONS_SELECTION 1
205 #define DATA_SELECTION 2
206 #define PLAYER_NUM_SELECTION 3
207 #define GAME_MODE_SELECTION 4
208 #define GAME_MODE_CC_OR_TIME_TRIALS_OPTIONS_SELECTION 5
209 #define CONFIRM_OK_SELECTION 6
210 #define CONFIRM_OK_SELECTION_FROM_BACK_OUT 7
211 #define TIME_TRIALS_DATA_SELECTION_FROM_BACK_OUT 8
216 #define CONTROLLER_PAK_MENU_SELECT_RECORD 1
217 #define CONTROLLER_PAK_MENU_END 2
218 #define CONTROLLER_PAK_MENU_ERASE 3
219 #define CONTROLLER_PAK_MENU_QUIT 4
220 #define CONTROLLER_PAK_MENU_TABLE_GAME_DATA 5
221 #define CONTROLLER_PAK_MENU_GO_TO_ERASING 6
222 #define CONTROLLER_PAK_MENU_ERASING 7
223 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NOT_ERASED 8
224 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NO_PAK 9
225 #define CONTROLLER_PAK_MENU_ERASE_ERROR_PAK_CHANGED 10
230 #define SCREEN_MODE_1P 0
231 #define SCREEN_MODE_2P_SPLITSCREEN_HORIZONTAL 1
232 #define SCREEN_MODE_2P_SPLITSCREEN_VERTICAL 2
233 #define SCREEN_MODE_3P_4P_SPLITSCREEN 3
234 #define NUM_SCREEN_MODES 4
239 #define TIME_TRIAL_3LAP_RECORD_1 0
240 #define TIME_TRIAL_3LAP_RECORD_2 1
241 #define TIME_TRIAL_3LAP_RECORD_3 2
242 #define TIME_TRIAL_3LAP_RECORD_4 3
243 #define TIME_TRIAL_3LAP_RECORD_5 4
244 #define TIME_TRIAL_1LAP_RECORD 5
257 #define TEXT_YELLOW 3
258 #define TEXT_BLUE_GREEN_RED_CYCLE_1 4
259 #define TEXT_BLUE_GREEN_RED_CYCLE_2 5
266 #define SOUND_STEREO 0
267 #define SOUND_HEADPHONES 1
268 #define SOUND_UNUSED 2
270 #define NUM_SOUND_MODES 4
284 #define CUP_COURSE_ONE 0
285 #define CUP_COURSE_TWO 1
286 #define CUP_COURSE_THREE 2
287 #define CUP_COURSE_FOUR 3
288 #define NUM_COURSES_PER_CUP 4
294 #define ITEM_BANANA 1
295 #define ITEM_BANANA_BUNCH 2
296 #define ITEM_GREEN_SHELL 3
297 #define ITEM_TRIPLE_GREEN_SHELL 4
298 #define ITEM_RED_SHELL 5
299 #define ITEM_TRIPLE_RED_SHELL 6
300 #define ITEM_BLUE_SPINY_SHELL 7
301 #define ITEM_THUNDERBOLT 8
302 #define ITEM_FAKE_ITEM_BOX 9
305 #define ITEM_MUSHROOM 12
306 #define ITEM_DOUBLE_MUSHROOM 13
307 #define ITEM_TRIPLE_MUSHROOM 14
308 #define ITEM_SUPER_MUSHROOM 15
313 #define BALLOON_STATUS_GONE 0
314 #define BALLOON_STATUS_PRESENT 1
315 #define BALLOON_STATUS_DEPARTING 2
320 #define MAX_TIME 0x927C0
326 #define BOOST_EFFECT 0x200
327 #define BOO_EFFECT 0x800
328 #define STAR_EFFECT 0x2000
329 #define HIT_ROTATING_EFFECT 0x4000
330 #define HOLD_BANANA_EFFECT 0x40000
331 #define REVERSE_EFFECT 0x400000
332 #define HIT_BY_ITEM_EFFECT 0x1000000
333 #define LIGHTNING_EFFECT 0x40000000
340 #define SPAWN_FIRST_SHELL 0
341 #define SPAWN_SECOND_SHELL 1
342 #define SPAWN_THIRD_SHELL 2
344 #define GPACK_RGB888(r, g, b) (((r) << 16) | ((g) << 8) | (b))
345 #define COLOR_LIGHT GPACK_RGB888(0x1C, 0x00, 0x00)
346 #define COLOR_LAVA GPACK_RGB888(0x34, 0x00, 0x00)
347 #define COLOR_BLACK GPACK_RGB888(0, 0, 0)