Bub: Difference between revisions

115 bytes added ,  8 May 2021
Reference to behavior file
m (Bolding title in lead)
(Reference to behavior file)
Line 33: Line 33:
===Vertical Movement===
===Vertical Movement===
Bub’s vertical movement is controlled by a special function which accepts an integer as its input. When the function is called, a variable is set storing the spawner’s Y-position. If the difference of Bub’s Y-position and this variable is greater than -100 and less than 1000 plus two times a random variable generated in Bub’s actions, Bub’s Y-position is incredented towards a new Y-position chosen through the sum of Bub’s second random variable and Mario’s position by the integer the function was called with every frame.
Bub’s vertical movement is controlled by a special function which accepts an integer as its input. When the function is called, a variable is set storing the spawner’s Y-position. If the difference of Bub’s Y-position and this variable is greater than -100 and less than 1000 plus two times a random variable generated in Bub’s actions, Bub’s Y-position is incredented towards a new Y-position chosen through the sum of Bub’s second random variable and Mario’s position by the integer the function was called with every frame.
==References==
* [https://github.com/n64decomp/sm64/blob/master/src/game/behaviors/bub.inc.c Bub reference file]
{{objects}}
{{objects}}
218

edits