Bub: Difference between revisions

12 bytes added ,  9 February 2021
m
no edit summary
m (remove GIANT gap. literally unreadable)
mNo edit summary
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.
{{objects}}