Pokey: Difference between revisions

Jump to navigation Jump to search
819 bytes added ,  1 July 2021
Behavior
(infobox)
 
(Behavior)
 
(2 intermediate revisions by 2 users not shown)
Line 22: Line 22:


==Behavior==
==Behavior==
TODO
Pokey begins in an uninitialized state. When Mario comes within 2000 units of Pokey, Pokey’s 5 body parts are spawned at y-offsets of 480, 360, 240, 120 and 0. If Mario’s distance from Pokey goes past 2500, Pokey returns to its home and goes back into the uninitialized state. If Pokey is missing a body part, a replacement part spawns after 100 frames. If Mario is more than 2000 units from Pokey, Pokey wanders around randomly. Specifically, Pokey moves with a forward speed of 5 units per frame with its movement angle being randomly increased or decreased by 45 degrees. The time between the movement angle being changed is a random number of frames from 30 to 80. If Mario is within 2000 units of Pokey, Pokey will approach Mario when he is far away, but begin to move away from him when he is close.
 
==References==
==References==
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/pokey.inc.c Pokey Behavior File]
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/pokey.inc.c Pokey Behavior File]


[[Category:Enemies]]
[[Category:Enemies]]
{{objects}}

Navigation menu