218
edits
SuperHamster (talk | contribs) m (Bolding title in lead) |
SuperHamster (talk | contribs) m (→References: List, link title) |
||
Line 29: | Line 29: | ||
The Merry-Go-Round’s other function has two purposes: to play the howling wind sound and to move the Merry-Go-Round. The Merry-Go-Round object has an attribute for whether or not Mario is in the outside area of BBH. If this is set to false, the game checks whether Mario is in the outside area or not. If he is, the attribute is set to true. If the attribute is set to true, the sound of howling wind plays. Within the code that occurs when Mario is set to outside, if Mario’s current room is not the outside area of BBH and Mario’s room is not the Merry-Go-Round room, the Merry-Go-Round attribute for whether Mario is outside is set to false. For the movement, if the Merry-Go-Round should not be stopped, the Merry-Go-Rounds Angular Yaw Velocity is set to 128 angular units (.7 degrees), this value is added to the Merry-Go-Round’s moving angle and facing angle every frame, and the Merry-Go-Round music function is run. If the Merry-Go-Round should be stopped, the Angular Yaw Velocity is set to 0 and the music switches back to the BBH music. | The Merry-Go-Round’s other function has two purposes: to play the howling wind sound and to move the Merry-Go-Round. The Merry-Go-Round object has an attribute for whether or not Mario is in the outside area of BBH. If this is set to false, the game checks whether Mario is in the outside area or not. If he is, the attribute is set to true. If the attribute is set to true, the sound of howling wind plays. Within the code that occurs when Mario is set to outside, if Mario’s current room is not the outside area of BBH and Mario’s room is not the Merry-Go-Round room, the Merry-Go-Round attribute for whether Mario is outside is set to false. For the movement, if the Merry-Go-Round should not be stopped, the Merry-Go-Rounds Angular Yaw Velocity is set to 128 angular units (.7 degrees), this value is added to the Merry-Go-Round’s moving angle and facing angle every frame, and the Merry-Go-Round music function is run. If the Merry-Go-Round should be stopped, the Angular Yaw Velocity is set to 0 and the music switches back to the BBH music. | ||
==References== | ==References== | ||
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/bbh_merry_go_round.inc.c Merry-Go-Round | * [https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/bbh_merry_go_round.inc.c Merry-Go-Round behavior file] | ||
{{Template:Objects}} | {{Template:Objects}} | ||
[[Category:Objects]] | [[Category:Objects]] |
edits