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
77 #define PLAYER_INACTIVE 0
78 #define PLAYER_UNKNOWN_0x40 (1 << 6)
79 #define PLAYER_INVISIBLE_OR_BOMB (1 << 8)
80 #define PLAYER_STAGING (1 << 9)
81 #define PLAYER_UNKNOWN (1 << 10)
82 #define PLAYER_CINEMATIC_MODE (1 << 11)
83 #define PLAYER_CPU (1 << 12)
84 #define PLAYER_START_SEQUENCE (1 << 13)
85 #define PLAYER_HUMAN (1 << 14)
86 #define PLAYER_EXISTS (1 << 15)
89 #define PLAYER_HUMAN_AND_CPU PLAYER_EXISTS | PLAYER_HUMAN | PLAYER_CPU | PLAYER_START_SEQUENCE
91 #define ZERO_PLAYERS_SELECTED 0
92 #define ONE_PLAYERS_SELECTED 1
93 #define TWO_PLAYERS_SELECTED 2
94 #define THREE_PLAYERS_SELECTED 3
95 #define FOUR_PLAYERS_SELECTED 4
96 #define SELECTED_PLAYER_DEFINES_TOTAL 5
100 #define PLAYER_THREE 2
101 #define PLAYER_FOUR 3
104 #define MARIO_SIZE 0.75f
105 #define LUIGI_SIZE 0.75f
106 #define YOSHI_SIZE 0.75f
107 #define TOAD_SIZE 0.75f
108 #define DK_SIZE 0.75f
109 #define WARIO_SIZE 0.75f
110 #define PEACH_SIZE 0.75f
111 #define BOWSER_SIZE 0.75f
114 #define MAX_NUM_MAIN_MENU_GAME_TYPES 3
120 #define TIME_TRIALS 1
144 #define MUSHROOM_CUP 0
147 #define SPECIAL_CUP 3
169 #define OPTIONS_MENU 5
171 #define COURSE_DATA_MENU 7
172 #define LOGO_INTRO_MENU 8
173 #define CONTROLLER_PAK_MENU 9
174 #define START_MENU 10
176 #define PLAYER_SELECT_MENU 12
177 #define COURSE_SELECT_MENU 13
178 #define RACING_DUPLICATE 14
183 #define START_MENU_FROM_QUIT 0
184 #define MAIN_MENU_FROM_QUIT 1
185 #define PLAYER_SELECT_MENU_FROM_QUIT 2
186 #define COURSE_SELECT_MENU_FROM_QUIT 3
188 #define ENDING_SEQUENCE 5
189 #define CREDITS_SEQUENCE 9
194 #define BLANK_MAIN_MENU 0
195 #define OPTIONS_SELECTION 1
196 #define DATA_SELECTION 2
197 #define PLAYER_NUM_SELECTION 3
198 #define GAME_MODE_SELECTION 4
199 #define GAME_MODE_CC_OR_TIME_TRIALS_OPTIONS_SELECTION 5
200 #define CONFIRM_OK_SELECTION 6
201 #define CONFIRM_OK_SELECTION_FROM_BACK_OUT 7
202 #define TIME_TRIALS_DATA_SELECTION_FROM_BACK_OUT 8
207 #define CONTROLLER_PAK_MENU_SELECT_RECORD 1
208 #define CONTROLLER_PAK_MENU_END 2
209 #define CONTROLLER_PAK_MENU_ERASE 3
210 #define CONTROLLER_PAK_MENU_QUIT 4
211 #define CONTROLLER_PAK_MENU_TABLE_GAME_DATA 5
212 #define CONTROLLER_PAK_MENU_GO_TO_ERASING 6
213 #define CONTROLLER_PAK_MENU_ERASING 7
214 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NOT_ERASED 8
215 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NO_PAK 9
216 #define CONTROLLER_PAK_MENU_ERASE_ERROR_PAK_CHANGED 10
221 #define SCREEN_MODE_1P 0
222 #define SCREEN_MODE_2P_SPLITSCREEN_HORIZONTAL 1
223 #define SCREEN_MODE_2P_SPLITSCREEN_VERTICAL 2
224 #define SCREEN_MODE_3P_4P_SPLITSCREEN 3
225 #define NUM_SCREEN_MODES 4
230 #define TIME_TRIAL_3LAP_RECORD_1 0
231 #define TIME_TRIAL_3LAP_RECORD_2 1
232 #define TIME_TRIAL_3LAP_RECORD_3 2
233 #define TIME_TRIAL_3LAP_RECORD_4 3
234 #define TIME_TRIAL_3LAP_RECORD_5 4
235 #define TIME_TRIAL_1LAP_RECORD 5
248 #define TEXT_YELLOW 3
249 #define TEXT_BLUE_GREEN_RED_CYCLE_1 4
250 #define TEXT_BLUE_GREEN_RED_CYCLE_2 5
257 #define SOUND_STEREO 0
258 #define SOUND_HEADPHONES 1
259 #define SOUND_UNUSED 2
261 #define NUM_SOUND_MODES 4
275 #define CUP_COURSE_ONE 0
276 #define CUP_COURSE_TWO 1
277 #define CUP_COURSE_THREE 2
278 #define CUP_COURSE_FOUR 3
279 #define NUM_COURSES_PER_CUP 4
285 #define ITEM_BANANA 1
286 #define ITEM_BANANA_BUNCH 2
287 #define ITEM_GREEN_SHELL 3
288 #define ITEM_TRIPLE_GREEN_SHELL 4
289 #define ITEM_RED_SHELL 5
290 #define ITEM_TRIPLE_RED_SHELL 6
291 #define ITEM_BLUE_SPINY_SHELL 7
292 #define ITEM_THUNDERBOLT 8
293 #define ITEM_FAKE_ITEM_BOX 9
296 #define ITEM_MUSHROOM 12
297 #define ITEM_DOUBLE_MUSHROOM 13
298 #define ITEM_TRIPLE_MUSHROOM 14
299 #define ITEM_SUPER_MUSHROOM 15
304 #define BALLOON_STATUS_GONE 0
305 #define BALLOON_STATUS_PRESENT 1
306 #define BALLOON_STATUS_DEPARTING 2
311 #define MAX_TIME 0x927C0
317 #define BOOST_EFFECT 0x200
318 #define BOO_EFFECT 0x800
319 #define STAR_EFFECT 0x2000
320 #define HIT_ROTATING_EFFECT 0x4000
321 #define HOLD_BANANA_EFFECT 0x40000
322 #define REVERSE_EFFECT 0x400000
323 #define HIT_BY_ITEM_EFFECT 0x1000000
324 #define LIGHTNING_EFFECT 0x40000000
331 #define SPAWN_FIRST_SHELL 0
332 #define SPAWN_SECOND_SHELL 1
333 #define SPAWN_THIRD_SHELL 2
335 #define GPACK_RGB888(r, g, b) (((r) << 16) | ((g) << 8) | (b))
336 #define COLOR_LIGHT GPACK_RGB888(0x1C, 0x00, 0x00)
337 #define COLOR_LAVA GPACK_RGB888(0x34, 0x00, 0x00)
338 #define COLOR_BLACK GPACK_RGB888(0, 0, 0)