Thwomp: Difference between revisions

Jump to navigation Jump to search
m
→‎References: List, capitalization
m (my contribution score is gonna be so high after this)
m (→‎References: List, capitalization)
 
Line 23: Line 23:
When Thwomp’s rising action begins, Thwomp begins to rise at a rate of 10 units/frame for 40 frames and then rises an additional 5 units and stops. Thwomp remains in the air for a variable period by calling for a random number between 0 and 1 which is then multiplied by 30 and added to 10. This is then used as the number of frames before Thwomp will move back down again. When this happens, Thwomp accelerates downward at a rate of 4 units/frame per frame. When Thwomp hits the ground, its Y-velocity is set to 0 and, if Mario is within 1500 units of Thwomp, the screen shakes and Thwomp makes a sound. After 10 frames, another random number from 0 to 1 is rolled and this number is multiplied by 10 and added to 20 to get the number of frames that Thwomp is on the ground before it begins to move up again.
When Thwomp’s rising action begins, Thwomp begins to rise at a rate of 10 units/frame for 40 frames and then rises an additional 5 units and stops. Thwomp remains in the air for a variable period by calling for a random number between 0 and 1 which is then multiplied by 30 and added to 10. This is then used as the number of frames before Thwomp will move back down again. When this happens, Thwomp accelerates downward at a rate of 4 units/frame per frame. When Thwomp hits the ground, its Y-velocity is set to 0 and, if Mario is within 1500 units of Thwomp, the screen shakes and Thwomp makes a sound. After 10 frames, another random number from 0 to 1 is rolled and this number is multiplied by 10 and added to 20 to get the number of frames that Thwomp is on the ground before it begins to move up again.
==References==
==References==
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/thwomp.inc.c Thwomp Behavior File]
* [https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/thwomp.inc.c Thwomp behavior file]


{{Template:Objects}}
{{Template:Objects}}


[[Category:Enemies]]
[[Category:Enemies]]
218

edits

Navigation menu