Spinning: Difference between revisions
m added use for non-motion spinthrow |
m grammar error |
||
Line 9: | Line 9: | ||
The method by which the game monitors the second condition is as follows: Between each pair of consecutive frames, the game records the area of the triangle whose vertices are the two joystick positions and the center of the joystick. If the joystick was rotated counterclockwise, the area is added to the total, and if the joystick was rotated clockwise, the area is subtracted from the total. If the joystick is [[Joystick neutrality|neutral]] on one of the frames or remains held at the same angle, nothing gets added or subtracted. If the total is at least 5 or less than or equal to -5, the condition is fulfilled. | The method by which the game monitors the second condition is as follows: Between each pair of consecutive frames, the game records the area of the triangle whose vertices are the two joystick positions and the center of the joystick. If the joystick was rotated counterclockwise, the area is added to the total, and if the joystick was rotated clockwise, the area is subtracted from the total. If the joystick is [[Joystick neutrality|neutral]] on one of the frames or remains held at the same angle, nothing gets added or subtracted. If the total is at least 5 or less than or equal to -5, the condition is fulfilled. | ||
Note that while usually a joystick input is considered neutral | Note that while usually a joystick input is considered neutral if its radius is less than or equal to .1, all joystick inputs with non-zero radius are considered in this case. Of course, the area traced out by the left joystick is the greatest if it is held at maximum radius. | ||
Each frame, the game checks if the most recent 31 frames validate a spin, the most recent 32 frames validate a spin, the most recent 33 frames validate a spin, and so on up to whether the most recent 70 frames validate a spin. | Each frame, the game checks if the most recent 31 frames validate a spin, the most recent 32 frames validate a spin, the most recent 33 frames validate a spin, and so on up to whether the most recent 70 frames validate a spin. |