![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
Functions | |
void | bhv_pyramid_elevator_init (void) |
Behaviors for bhvPyramidElevator and bhvPyramidElevatorTrajectoryMarkerBall. More... | |
void | bhv_pyramid_elevator_loop (void) |
void | bhv_pyramid_elevator_trajectory_marker_ball_loop (void) |
Deactivate the trajectory marker balls if the elevator is not moving. More... | |
Behaviors for bhvPyramidElevator and bhvPyramidElevatorTrajectoryMarkerBall.
This controls the elevator that descends Shifting Sand Land's pyramid, as well as the small marker balls that demarcate its trajactory. Generate the ten trajectory marker balls that indicate where the elevator moves.
Do not move until Mario stands on the elevator. When he does, transition to the starting state.
Use a sine wave to start the elevator's movement with a small jolt. After a certain amount of time, transition to a constant-velocity state.
Move downwards with constant velocity. Once at the bottom of the track, transition to the final state.
Use a sine wave to stop the elevator's movement with a small jolt. Then, remain at the bottom of the track.