Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions
pyramid_top.inc.c File Reference

Functions

void bhv_pyramid_top_init (void)
 Behaviors for bhvPyramidTop, bhvPyramidTopFragment, and bhvPyramidPillarTouchDetector. More...
 
void bhv_pyramid_top_spinning (void)
 Animate the pyramid top as rising and then spinning. More...
 
void bhv_pyramid_top_explode (void)
 Explode the pyramid top, generating dust and pyramid fragments. More...
 
void bhv_pyramid_top_loop (void)
 
void bhv_pyramid_top_fragment_init (void)
 Initialize the pyramid fragment. More...
 
void bhv_pyramid_top_fragment_loop (void)
 Rotate the pyramid fragment along the yaw and pitch axes. More...
 
void bhv_pyramid_pillar_touch_detector_loop (void)
 If Mario touches a pillar's touch detector, count it towards the pyramid top's total count of touched detectors, and deactivate the detector. More...
 

Function Documentation

◆ bhv_pyramid_pillar_touch_detector_loop()

void bhv_pyramid_pillar_touch_detector_loop ( void  )

If Mario touches a pillar's touch detector, count it towards the pyramid top's total count of touched detectors, and deactivate the detector.

◆ bhv_pyramid_top_explode()

void bhv_pyramid_top_explode ( void  )

Explode the pyramid top, generating dust and pyramid fragments.

◆ bhv_pyramid_top_fragment_init()

void bhv_pyramid_top_fragment_init ( void  )

Initialize the pyramid fragment.

◆ bhv_pyramid_top_fragment_loop()

void bhv_pyramid_top_fragment_loop ( void  )

Rotate the pyramid fragment along the yaw and pitch axes.

After some time, deactivate it.

◆ bhv_pyramid_top_init()

void bhv_pyramid_top_init ( void  )

Behaviors for bhvPyramidTop, bhvPyramidTopFragment, and bhvPyramidPillarTouchDetector.

bhvPyramidTop controls Shifting Sand Land's pyramid's top piece, which rotates and explodes when Mario stands on all four pillars. bhvPyramidTopFragment controls the shards that the pyramid's top emits when it is spinning and exploding. bhvPyramidPillarTouchDetector controls the intangible collision boxes that Mario touches when on top of each pillar. Spawn the four pillars' touch detectors.

◆ bhv_pyramid_top_loop()

void bhv_pyramid_top_loop ( void  )

◆ bhv_pyramid_top_spinning()

void bhv_pyramid_top_spinning ( void  )

Animate the pyramid top as rising and then spinning.

Generate some pyramid fragments in the process.