Chuckya: Difference between revisions

Jump to navigation Jump to search
838 bytes added ,  9 December 2022
Added rough movement behavior, awaiting precise measurement
(Added throwing behavior and relationship to CWT, more edit into behavior and AP behavior to do)
(Added rough movement behavior, awaiting precise measurement)
Line 19: Line 19:


== Behavior ==
== Behavior ==
=== Moving ===
Chuckya's movement is composed of three different steps, which loop over and over again :
# Chuckya will turn to roughly face Mario
#* If Chuckya is already facing Mario and the angle to Mario is greater than 1024 units, it will rotate in by an increment of 1024 units towards him.
#* If the angle to Mario is less than or equal to 1024 units, it will turn until it faces Mario directly
# Chuckya will chase towards Mario until the latter is behind a line perpendicular to Chuckya's forward direction, the chase will only happen if Mario is close enough to Chuckya
# Chuckya will stop for a moment
This behavior is exploited in the [[A Button Challenge]] to have Chuckya drop at the start of the stage in Bowser in the Sky<ref>[https://www.youtube.com/watch?v=opnLYxrVWMc "The Chuckya Drop" by UncommentatedPannen]</ref>
=== Throwing ===
=== Throwing ===
When Chuckya grabs Mario, a random number between 10 and 40 is generated to serve as a timer. Every frames, Chuckya will rotate by 2048 horizontal angular units counterclockwise and remove one from this number. Mario will be thrown when one of these conditions is met :  
When Chuckya grabs Mario, a random number between 10 and 40 is generated to serve as a timer. Every frames, Chuckya will rotate by 2048 horizontal angular units counterclockwise and remove one from this number. Mario will be thrown when one of these conditions is met :  
577

edits

Navigation menu