NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
game_constants.h
Go to the documentation of this file.
1#pragma once
3// Please place the defines/enums in alphabetical order!
4
7
8#define AMBUSH_ENEMY_COUNT 4
9
10#define HINT_MOVIE_COUNT 70
11
12#define MAX_LIVES 99
13
14#define MAX_STOCK_ITEM 99
15
16#define SAVE_SLOT_COUNT 3
17
18#define STAR_COIN_COUNT 3
19
20#define STARTING_LIVES_COUNT 5
21
22#define SUPER_GUIDE_DEATH_COUNT 8
23
26 PLAYER_MARIO,
27 PLAYER_LUIGI,
28 PLAYER_BLUE_TOAD,
29 PLAYER_YELLOW_TOAD,
30 PLAYER_COUNT
31};
32
35 CREATE_ITEM_NONE = 0x0,
40};
41
44 POWERUP_NONE,
45 POWERUP_MUSHROOM,
46 POWERUP_FIRE_FLOWER,
47 POWERUP_MINI_MUSHROOM,
48 POWERUP_PROPELLER_SHROOM,
49 POWERUP_PENGUIN_SUIT,
50 POWERUP_ICE_FLOWER,
51 POWERUP_COUNT
52};
53
55enum STAGE_e {
56 STAGE_1,
57 STAGE_2,
58 STAGE_3,
59 STAGE_4,
60 STAGE_5,
61 STAGE_6,
62 STAGE_7,
63 STAGE_8,
64 STAGE_9,
65 STAGE_COIN_BATTLE = 19,
66 STAGE_GHOST_HOUSE,
67 STAGE_TOWER,
69 STAGE_CASTLE,
71 STAGE_KINOKO_HOUSE,
72 STAGE_KINOKO_HOUSE_2,
73 STAGE_KINOKO_HOUSE_3,
74 STAGE_KINOKO_HOUSE_4,
75 STAGE_ENEMY = 32,
76 STAGE_ENEMY_2,
77 STAGE_ENEMY_3,
78 STAGE_CANNON,
79 STAGE_DOOMSHIP = 37,
81 STAGE_TITLE,
82 STAGE_PEACH_CASTLE,
83 STAGE_STAFFROLL,
84 STAGE_COUNT
85};
86
88enum WORLD_e {
89 WORLD_1,
90 WORLD_2,
91 WORLD_3,
92 WORLD_4,
93 WORLD_5,
94 WORLD_6,
95 WORLD_7,
96 WORLD_8,
97 WORLD_9,
99 WORLD_COUNT,
100
101 LAST_WORLD = WORLD_8,
102 LAST_SPECIAL_WORLD = WORLD_9,
103 NORMAL_WORLD_COUNT = LAST_WORLD + 1,
104 SPECIAL_WORLD_COUNT = LAST_SPECIAL_WORLD - LAST_WORLD
105};
106
WORLD_e
The numbers corresponding to each world.
PLAYER_CHARACTER_e
The identifiers for each character.
PLAYER_CREATE_ITEM_e
Various flags applied to the player on occasion.
PLAYER_POWERUP_e
The identifiers for each powerup.
STAGE_e
The numbers corresponding to each level type.
@ WORLD_10
[Unused].
@ CREATE_ITEM_RESCUE_TOAD
Spawns a Rescue Toad instead of the regular player character.
@ CREATE_ITEM_BUBBLE
Spawns the player inside a bubble.
@ CREATE_ITEM_YOSHI
Spawns a Yoshi along with the player.
@ CREATE_ITEM_STAR_POWER
Gives the player Star Power.
@ STAGE_CASTLE_2
[Unused].
@ STAGE_RESCUE
When used, it loads the Toad Rescue level for the corresponding world.
@ STAGE_TOWER_2
[Unused].