Global variables

From SM64Decomp Wiki
Jump to navigation Jump to search
Name Type File Description
gCurrCourseNum s16 src/game/area.c
gCurrActNum s16 src/game/area.c
gCurrAreaIndex s16 src/game/area.c
gSavedCourseNum s16 src/game/area.c
gPauseScreenMode s16 src/game/area.c
gSaveOptSelectIndex s16 src/game/area.c
gCameraMovementFlags s16
gCamera struct Camera
gControllers struct Controller[3] src/game/game_init.c
gGlobalTimer u32 src/game/game_init.c
gPlayer1Controller struct Controller src/game/game_init.c
gPlayer2Controller struct Controller src/game/game_init.c
gPlayer3Controller struct Controller src/game/game_init.c
gMarioStates struct MarioState[1] src/game/level_update.c
gHudDisplay struct HudDisplay src/game/level_update.c
gNeverEnteredCastle s8 src/game/level_update.c
gCurrentObject ?
gMarioState struct MarioState* src/game/level_update.c Contains data about Mario's current state including position and velocity as well as coutner for coins, stars, health and more.
gMarioState->numCoins s16
gMarioState->numStars s16
gMarioState->numLives s8
gMarioState->health s16 Health