Hangable ceiling

Revision as of 03:24, 25 March 2020 by Macrepeh (talk | contribs) (Completely rewrote article)

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:

References

"All Hangable Ceilings" by Pannenkoek2012

Code