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
112 #define MARIO_SIZE 0.75f
113 #define LUIGI_SIZE 0.75f
114 #define YOSHI_SIZE 0.75f
115 #define TOAD_SIZE 0.75f
116 #define DK_SIZE 0.75f
117 #define WARIO_SIZE 0.75f
118 #define PEACH_SIZE 0.75f
119 #define BOWSER_SIZE 0.75f
122 #define MAX_NUM_MAIN_MENU_GAME_TYPES 3
128 #define TIME_TRIALS 1
152 #define MUSHROOM_CUP 0
155 #define SPECIAL_CUP 3
177 #define OPTIONS_MENU 5
179 #define COURSE_DATA_MENU 7
180 #define LOGO_INTRO_MENU 8
181 #define CONTROLLER_PAK_MENU 9
182 #define START_MENU 10
184 #define PLAYER_SELECT_MENU 12
185 #define COURSE_SELECT_MENU 13
186 #define RACING_DUPLICATE 14
191 #define START_MENU_FROM_QUIT 0
192 #define MAIN_MENU_FROM_QUIT 1
193 #define PLAYER_SELECT_MENU_FROM_QUIT 2
194 #define COURSE_SELECT_MENU_FROM_QUIT 3
196 #define ENDING_SEQUENCE 5
197 #define CREDITS_SEQUENCE 9
202 #define BLANK_MAIN_MENU 0
203 #define OPTIONS_SELECTION 1
204 #define DATA_SELECTION 2
205 #define PLAYER_NUM_SELECTION 3
206 #define GAME_MODE_SELECTION 4
207 #define GAME_MODE_CC_OR_TIME_TRIALS_OPTIONS_SELECTION 5
208 #define CONFIRM_OK_SELECTION 6
209 #define CONFIRM_OK_SELECTION_FROM_BACK_OUT 7
210 #define TIME_TRIALS_DATA_SELECTION_FROM_BACK_OUT 8
215 #define CONTROLLER_PAK_MENU_SELECT_RECORD 1
216 #define CONTROLLER_PAK_MENU_END 2
217 #define CONTROLLER_PAK_MENU_ERASE 3
218 #define CONTROLLER_PAK_MENU_QUIT 4
219 #define CONTROLLER_PAK_MENU_TABLE_GAME_DATA 5
220 #define CONTROLLER_PAK_MENU_GO_TO_ERASING 6
221 #define CONTROLLER_PAK_MENU_ERASING 7
222 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NOT_ERASED 8
223 #define CONTROLLER_PAK_MENU_ERASE_ERROR_NO_PAK 9
224 #define CONTROLLER_PAK_MENU_ERASE_ERROR_PAK_CHANGED 10
229 #define SCREEN_MODE_1P 0
230 #define SCREEN_MODE_2P_SPLITSCREEN_HORIZONTAL 1
231 #define SCREEN_MODE_2P_SPLITSCREEN_VERTICAL 2
232 #define SCREEN_MODE_3P_4P_SPLITSCREEN 3
233 #define NUM_SCREEN_MODES 4
238 #define TIME_TRIAL_3LAP_RECORD_1 0
239 #define TIME_TRIAL_3LAP_RECORD_2 1
240 #define TIME_TRIAL_3LAP_RECORD_3 2
241 #define TIME_TRIAL_3LAP_RECORD_4 3
242 #define TIME_TRIAL_3LAP_RECORD_5 4
243 #define TIME_TRIAL_1LAP_RECORD 5
256 #define TEXT_YELLOW 3
257 #define TEXT_BLUE_GREEN_RED_CYCLE_1 4
258 #define TEXT_BLUE_GREEN_RED_CYCLE_2 5
265 #define SOUND_STEREO 0
266 #define SOUND_HEADPHONES 1
267 #define SOUND_UNUSED 2
269 #define NUM_SOUND_MODES 4
283 #define CUP_COURSE_ONE 0
284 #define CUP_COURSE_TWO 1
285 #define CUP_COURSE_THREE 2
286 #define CUP_COURSE_FOUR 3
287 #define NUM_COURSES_PER_CUP 4
293 #define ITEM_BANANA 1
294 #define ITEM_BANANA_BUNCH 2
295 #define ITEM_GREEN_SHELL 3
296 #define ITEM_TRIPLE_GREEN_SHELL 4
297 #define ITEM_RED_SHELL 5
298 #define ITEM_TRIPLE_RED_SHELL 6
299 #define ITEM_BLUE_SPINY_SHELL 7
300 #define ITEM_THUNDERBOLT 8
301 #define ITEM_FAKE_ITEM_BOX 9
304 #define ITEM_MUSHROOM 12
305 #define ITEM_DOUBLE_MUSHROOM 13
306 #define ITEM_TRIPLE_MUSHROOM 14
307 #define ITEM_SUPER_MUSHROOM 15
312 #define BALLOON_STATUS_GONE 0
313 #define BALLOON_STATUS_PRESENT 1
314 #define BALLOON_STATUS_DEPARTING 2
319 #define MAX_TIME 0x927C0
325 #define BOOST_EFFECT 0x200
326 #define BOO_EFFECT 0x800
327 #define STAR_EFFECT 0x2000
328 #define HIT_ROTATING_EFFECT 0x4000
329 #define HOLD_BANANA_EFFECT 0x40000
330 #define REVERSE_EFFECT 0x400000
331 #define HIT_BY_ITEM_EFFECT 0x1000000
332 #define LIGHTNING_EFFECT 0x40000000
339 #define SPAWN_FIRST_SHELL 0
340 #define SPAWN_SECOND_SHELL 1
341 #define SPAWN_THIRD_SHELL 2
343 #define GPACK_RGB888(r, g, b) (((r) << 16) | ((g) << 8) | (b))
344 #define COLOR_LIGHT GPACK_RGB888(0x1C, 0x00, 0x00)
345 #define COLOR_LAVA GPACK_RGB888(0x34, 0x00, 0x00)
346 #define COLOR_BLACK GPACK_RGB888(0, 0, 0)