Wiggler: Difference between revisions

Jump to navigation Jump to search
1,190 bytes added ,  22 December 2020
Behavior mostly done
(Skeleton)
 
(Behavior mostly done)
Line 22: Line 22:


==Behavior==
==Behavior==
TODO
On each frame, Wiggler's body segments are updated to match Wiggler's head, preventing individual segments from becoming stuck. When Mario enters the cave from above, Wiggler's dialogue appears and then Wiggler begins walking. Wiggler has 4 different top speeds depending on its health. These speeds are 2, 40, 30, and 16 units per frame for 1, 2, 3 and 4 health respectively. Wiggler approaches its top speed at 1 unit per frame per frame. On the US version of the game, Wiggler's health is not set to 4 until Wiggler finishes talking, meaning its top speed is 113762.3 units per frame for 1 frame. If Wiggler's health is 4, Wiggler walks around randomly, with its target angle increasing or decreasing by 90 degrees each frame. Otherwise, Wiggler's target angle will be its angle to Mario effectively making Wiggler chase Mario. If Wiggler collides with Mario, Wiggler decelerates to a stop at 1 unit per frame per frame and then resumes walking. When Wiggler takes damage, Wiggler's dialogue is displayed and then it goes back to walking or begins shrinking if its health is 1. If Wiggler's health is 1, a star spawns, Wiggler shrinks, and then walks around until it falls through the floor.
==References==
==References==
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/wiggler.inc.c Wiggler Behavior File]
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/wiggler.inc.c Wiggler Behavior File]


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

Navigation menu