Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 19:33, 15 July 2026 by ThePlayerRolo (talk | contribs) (Add Scene ID docs)

Description

This page has documentation on the "Scene" system seen in Luigi's Mansion, which handles the most basic game states (Title Screen, Boot, Main Game, etc).

Definitions

Scene Structure
Member Name Member Type Member Offset Member Description
mName char[16] 0x00 The name of the scene.
_10 s16 (signed 16-bit integer) 0x10 Currently unknown, but could be some sort of id.
mInitFn void (*SceneInitFunc)() 0x14 A pointer to the scene's function used for initializing the scene.
mUpdateFn u32 (*SceneUpdateFunc)() 0x18 A pointer to the scene's function used for updating the scene every frame.
mDrawFn void (*SceneDrawFunc)() 0x1C A pointer to the scene's function used for drawing the scene every frame.
mDestroyFn void (*SceneDestroyFunc)() 0x20 A pointer to the scene's function used for destroying the scene and it's resources.
Scene IDs
ID Enum Name
0 SCENE_BOOT
1 SCENE_TITLE
2 SCENE_MAIN_GAME
3 SCENE_SELECT
4 SCENE_OPENING
5 SCENE_STUFF_ROLL (Staff Roll)
6 SCENE_ENDING
7 SCENE_MOVIE

References

Luigi's Mansion Decompilation