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
69 #define DEMO_MODE_ACTIVE 1
70 #define DEMO_MODE_INACTIVE 0
79 #define PLAYER_INACTIVE 0
80 #define PLAYER_EXISTS (1 << 15)
81 #define PLAYER_CINEMATIC_MODE (1 << 11)
82 #define PLAYER_STAGING (1 << 9)
83 #define PLAYER_START_SEQUENCE (1 << 13)
84 #define PLAYER_CPU (1 << 12)
85 #define PLAYER_HUMAN (1 << 14)
86 #define PLAYER_INVISIBLE_OR_BOMB (1 << 8)
87 #define PLAYER_UNKNOWN_0x40 (1 << 6)
89 #define PLAYER_UNKNOWN (1 << 10)
92 #define PLAYER_HUMAN_AND_CPU PLAYER_EXISTS | PLAYER_HUMAN | PLAYER_CPU | PLAYER_START_SEQUENCE
94 #define ZERO_PLAYERS_SELECTED 0
95 #define ONE_PLAYERS_SELECTED 1
96 #define TWO_PLAYERS_SELECTED 2
97 #define THREE_PLAYERS_SELECTED 3
98 #define FOUR_PLAYERS_SELECTED 4
99 #define SELECTED_PLAYER_DEFINES_TOTAL 5
103 #define PLAYER_THREE 2
104 #define PLAYER_FOUR 3
107 #define MARIO_SIZE 0.75f
108 #define LUIGI_SIZE 0.75f
109 #define YOSHI_SIZE 0.75f
110 #define TOAD_SIZE 0.75f
111 #define DK_SIZE 0.75f
112 #define WARIO_SIZE 0.75f
113 #define PEACH_SIZE 0.75f
114 #define BOWSER_SIZE 0.75f
117 #define MAX_NUM_MAIN_MENU_GAME_TYPES 3
123 #define TIME_TRIALS 1
147 #define MUSHROOM_CUP 0
150 #define SPECIAL_CUP 3
172 #define OPTIONS_MENU 5
174 #define COURSE_DATA_MENU 7
175 #define LOGO_INTRO_MENU 8
176 #define CONTROLLER_PAK_MENU 9
177 #define START_MENU 10
179 #define PLAYER_SELECT_MENU 12
180 #define COURSE_SELECT_MENU 13
181 #define RACING_DUPLICATE 14
186 #define START_MENU_FROM_QUIT 0
187 #define MAIN_MENU_FROM_QUIT 1
188 #define PLAYER_SELECT_MENU_FROM_QUIT 2
189 #define COURSE_SELECT_MENU_FROM_QUIT 3
191 #define ENDING_SEQUENCE 5
192 #define CREDITS_SEQUENCE 9
197 #define BLANK_MAIN_MENU 0
198 #define OPTIONS_SELECTION 1
199 #define DATA_SELECTION 2
200 #define PLAYER_NUM_SELECTION 3
201 #define GAME_MODE_SELECTION 4
202 #define GAME_MODE_CC_OR_TIME_TRIALS_OPTIONS_SELECTION 5
203 #define CONFIRM_OK_SELECTION 6
204 #define CONFIRM_OK_SELECTION_FROM_BACK_OUT 7
205 #define TIME_TRIALS_DATA_SELECTION_FROM_BACK_OUT 8
210 #define CONTROLLER_PAK_MENU_SELECT_RECORD 1
211 #define CONTROLLER_PAK_MENU_END 2
212 #define CONTROLLER_PAK_MENU_ERASE 3
213 #define CONTROLLER_PAK_MENU_QUIT 4
214 #define CONTROLLER_PAK_MENU_TABLE_GAME_DATA 5
215 #define CONTROLLER_PAK_MENU_GO_TO_ERASING 6
216 #define CONTROLLER_PAK_MENU_ERASING 7
217 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NOT_ERASED 8
218 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NO_PAK 9
219 #define CONTROLLER_PAK_MENU_ERASE_ERROR_PAK_CHANGED 10
224 #define SCREEN_MODE_1P 0
225 #define SCREEN_MODE_2P_SPLITSCREEN_HORIZONTAL 1
226 #define SCREEN_MODE_2P_SPLITSCREEN_VERTICAL 2
227 #define SCREEN_MODE_3P_4P_SPLITSCREEN 3
228 #define NUM_SCREEN_MODES 4
233 #define TIME_TRIAL_3LAP_RECORD_1 0
234 #define TIME_TRIAL_3LAP_RECORD_2 1
235 #define TIME_TRIAL_3LAP_RECORD_3 2
236 #define TIME_TRIAL_3LAP_RECORD_4 3
237 #define TIME_TRIAL_3LAP_RECORD_5 4
238 #define TIME_TRIAL_1LAP_RECORD 5
251 #define TEXT_YELLOW 3
252 #define TEXT_BLUE_GREEN_RED_CYCLE_1 4
253 #define TEXT_BLUE_GREEN_RED_CYCLE_2 5
260 #define SOUND_STEREO 0
261 #define SOUND_HEADPHONES 1
262 #define SOUND_UNUSED 2
264 #define NUM_SOUND_MODES 4
278 #define CUP_COURSE_ONE 0
279 #define CUP_COURSE_TWO 1
280 #define CUP_COURSE_THREE 2
281 #define CUP_COURSE_FOUR 3
282 #define NUM_COURSES_PER_CUP 4
288 #define ITEM_BANANA 1
289 #define ITEM_BANANA_BUNCH 2
290 #define ITEM_GREEN_SHELL 3
291 #define ITEM_TRIPLE_GREEN_SHELL 4
292 #define ITEM_RED_SHELL 5
293 #define ITEM_TRIPLE_RED_SHELL 6
294 #define ITEM_BLUE_SPINY_SHELL 7
295 #define ITEM_THUNDERBOLT 8
296 #define ITEM_FAKE_ITEM_BOX 9
299 #define ITEM_MUSHROOM 12
300 #define ITEM_DOUBLE_MUSHROOM 13
301 #define ITEM_TRIPLE_MUSHROOM 14
302 #define ITEM_SUPER_MUSHROOM 15
307 #define BALLOON_STATUS_GONE 0
308 #define BALLOON_STATUS_PRESENT 1
309 #define BALLOON_STATUS_DEPARTING 2
314 #define MAX_TIME 0x927C0
320 #define BOOST_EFFECT 0x200
321 #define BOO_EFFECT 0x800
322 #define STAR_EFFECT 0x2000
323 #define HOLD_BANANA_EFFECT 0x40000
324 #define HIT_ROTATING_EFFECT 0x4000
325 #define HIT_BY_ITEM_EFFECT 0x1000000
326 #define REVERSE_EFFECT 0x400000
327 #define LIGHTNING_EFFECT 0x40000000
334 #define SPAWN_FIRST_SHELL 0
335 #define SPAWN_SECOND_SHELL 1
336 #define SPAWN_THIRD_SHELL 2
338 #define GPACK_RGB888(r, g, b) (((r) << 16) | ((g) << 8) | (b))
339 #define COLOR_LIGHT GPACK_RGB888(0x1C, 0x00, 0x00)
340 #define COLOR_LAVA GPACK_RGB888(0x34, 0x00, 0x00)
341 #define COLOR_BLACK GPACK_RGB888(0, 0, 0)