Hangable ceiling: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
m (Bloopiero moved page Hangable ceiling to Hangable Ceiling without leaving a redirect)
(Completely rewrote article)
Line 1: Line 1:
{{stub}}
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.


These ceilings are triangle type [add here]. To hang from a hangable ceiling Mario must satisfy two conditions.
==Locations==
*Mario is in the single jump or double jump action.
 
*Mario is moving upwards, also known as having positive vertical speed.
The following courses have hangable ceilings:
If both these conditions are met, then holding A makes Mario hang from the ceiling.
 
* [[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]]
 
==References==
[https://www.youtube.com/watch?v=Kx7LczO4sS4 "All Hangable Ceilings" by Pannenkoek2012]
 
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/mario_step.c#L446 Code]
 
[[Category:Mechanics]]

Revision as of 03:24, 25 March 2020

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