Hangable ceiling
Hangable ceilings are a type of ceiling onto which Mario can hang and move around. These ceilings are those consisting of surfaces using surface type 5, SURFACE_HANGABLE. When the game performs an air movement quarter step, if Mario's next Y-position is within 160 units of a ceiling, his vertical speed is positive, his current action has the "CHECK_HANG" argument, the referenced ceiling is not null and the referenced ceiling is hangable, Mario begins hanging onto the ceiling. Since only Single Jump and Double Jump have the "CHECK_HANG" argument, Mario will only grab the ceiling if he is in one of those two actions. As long as the A-Button is held and Mario's referenced ceiling is hangable, Mario will hang on the ceiling and can move around. If the A-Button stops being held, or if Mario's referenced ceiling is not hangable, Mario goes into freefall. If the Z-Button is pressed, Mario does a ground pound.
Locations
The following courses have hangable ceilings:
- Tiny-Huge Island (in the Red Coin area)
- Bowser in the Fire Sea
- Bob-omb Battlefield
- Shifting Sand Land (inside the pyramid)
- The Castle (Castle Grounds)
- Hazy Maze Cave
- Wing Mario over the Rainbow (Inaccessible)
- Tall, Tall Mountain