Pokey: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
mNo edit summary
(Behavior)
 
(One intermediate revision by one other user 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]

Latest revision as of 01:51, 1 July 2021

Pokey
STROOP- Pokey.png
Technical Constants
Object Group General Actor
Actor Group Group 5
Physical Constants
Gravity -400
Friction 1000
Buoyancy 200
Hitbox
Interaction Type Bounce Top
Damage 2
Radius 40
Height 20
Down Offset 10

Pokey is an enemy appearing in Shifting Sand Land. It is composed of a head with a maximum of 4 body parts. To kill Pokey, the head must be killed. Pokey drops a blue coin upon defeat.

Behavior

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

Pokey Behavior File