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:17, 15 July 2026 by ThePlayerRolo (talk | contribs) (create basic scenes page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

References

Luigi's Mansion Decompilation