Hangable ceiling

A Hangable Ceiling is a ceiling Mario can hang on. Any ceiling with the hangable surface type is hangable. Mario will grab onto a ceiling if all of the following conditions are satisfied:

  • Mario is not hitting out-of-bounds
  • Mario is not landing on a floor
  • Mario is hitting a ceiling
  • Mario is moving upwards
  • Mario is single jumping or double jumping
  • The first ceiling above Mario is hangable

Notice that if Mario hits a ceiling from the side, and a ceiling far above him is hangable, the game will consider him to be hanging on the high ceiling and will then move him there. This is the cause of the Hangable Ceiling Upwarp.

Being pushed off of a hangable ceiling while idling will cause the game to crash due to a null pointer exception.

Locations

The following courses have hangable ceilings:

References

"All Hangable Ceilings" by Pannenkoek2012

Code

"Null Ceiling-Triangle Game Freeze" by Pannenkoek2012