Wiggler: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(Behavior mostly done)
m (my contribution score is gonna be so high after this)
Line 25: Line 25:
==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]
{{Template:Objects}}


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

Revision as of 18:28, 11 February 2021

Wiggler
STROOP- Wiggler.png
Technical Constants
Object Group General Actor
Actor Group Group 11
Physical Constants
Gravity -400
Friction 1000
Buoyancy 200
Hitbox
Interaction Type Bounce Top
Damage 3
Health 4
Radius 60
Height 50

Wiggler is a boss enemy appearing in Tiny Huge Island.

Behavior

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

Wiggler Behavior File