Interaction type: Difference between revisions

Jump to navigation Jump to search
Added BBH Entrace, Koopa Shell, Star/Key, and Cannon
No edit summary
(Added BBH Entrace, Koopa Shell, Star/Key, and Cannon)
Line 91: Line 91:
===Warp Door===
===Warp Door===
===Star/Key===
===Star/Key===
This interaction is used when Mario collects a Star or a Key. The interaction has two subtypes: NO_EXIT and GRAND_STAR. When the interaction occurs, a variable labelled StarGrabAction is set to STAR_DANCE_EXIT. Two variables are also set to check whether the object being interacted with has the NO_EXIT or GRAND_STAR subtype. If Mario’s health is at least 256, then Mario stops riding or holding any objects and then the game runs several checks to determine what animation to play. If the object is not of the type NO_EXIT, Mario’s hurt and heal counters are set to 0 and his cap timer is set to equal 1 if it is greater than 1. If the object is of the type NO_EXIT then the starGrabAction is set to STAR_DANCE_NO_EXIT. If Mario is swimming or is wearing the metal cap underwater, then starGrabAction is set to STAR_DANCE_WATER. If Mario is in the air starGrabAction is set to FALL_AFTER_STAR_GRAB. After these checks, the game spawns a smoke puff, sets the object’s InteractStatus to INTERACTED, and sets Mario’s interactObj and usedObj attributes to the object. Then, the game checks the object’s star index and updates Mario’s star count, if applicable. If the object is not of the type NO_EXIT, the level music is set to fade out. If the object is the Grand Star, Mario’s action is set to begin the Grand Star collection cutscene. Otherwise, Mario’s action is set to whatever starGrabAction was set to when the game checked each case.
===Warp===
===Warp===
===Cannon Base===
===Cannon Base===
This interaction is used for Mario entering a cannon. When the interaction occurs, the game first checks to see if Mario is not already in a cannon. If he is not, Mario stops riding or holding any objects, the object’s InteractStatus is set to INTERACTED, Mario’s InteractObj and usedObj attributes are set to the object, and Mario’s action is set so that he is in a cannon.
===Bounce Top===
===Bounce Top===
===Water Ring===
===Water Ring===
Line 99: Line 101:
===Burns===
===Burns===
===Koopa Shell===
===Koopa Shell===
This interaction is used for the Koopa Shell Mario can ride. When the interaction occurs, first the game checks whether or not Mario is already riding a shell. If he is not, the game runs a function to determine what interaction occurred between Mario and the object. If the interaction with the object is Mario hitting it from above, or if Mario’s action is set to walking, Mario’s interactObj, usedObj, and riddenObj attritubes are set to the object, the game updates Mario’s sound and camera to reflect him riding the shell, the shell music begins, Mario drops any held objects, and Mario’s action is set to riding the shell.
===Bounce Top/Bottom===
===Bounce Top/Bottom===
===Text===
===Text===
Line 107: Line 110:
===Clam/Bubba===
===Clam/Bubba===
===BBH Entrance===
===BBH Entrance===
This interaction is used for the cage Mario jumps into to enter Big Boo’s Haunt. When the interaction occurs, first the game checks to see if Mario is already in the act of entering BBH. If he is not, Mario stops riding or holding any objects, the object’s InteractStatus is set to INTERACTED, and Mario’s InteractObj and usedObj attributes are set to the object. The game then sets Mario’s action depending on whether or not he is in the air. If Mario is in the air, Mario’s action is set so that he will spin into the BBH cage. If Mario is not in the air, his action is set so that he will jump into the BBH cage.
===Snufit Bullet===
===Snufit Bullet===
===Shocks===
===Shocks===

Navigation menu