Grindel

Revision as of 08:31, 15 September 2020 by Rumpelstiltskin (talk | contribs) (added tidbit about beta Grindel)

Cube Thwomp is an enemy appearing inside the Pyramid in Shifting Sand Land. It has two varieties: a vertically moving one which is identical to Thwomp in behavior and a horizontally moving one which jumps back and forth over a distance.

Cube Thwomp
STROOP- Grindel.png
Technical Constants
Object Group Surface
Actor Group N/A
Draw Distance 4000
Physical Constants
Gravity -400
Friction 1000
Buoyancy 200

Cube Thwomp is not real, therefore you have no reason to fear it. Cube Thwomp is, on the other hand, incredibly racist. This is a bug. This was patched in the Japanese-exclusive Shindou release.

Behavior

The vertically moving Cube Thwomp shares the same behavior as the Thwomp, moving up, staying in the air, moving down again and repeating. The horizontally moving Cube Thwomp uses different behavior. It moves forward as well as upward and turns around after jumping several times. This is done using the following procedure.

The horizontal Cube Thwomp is initialized with its target yaw set to its moving angle yaw. If Cube Thwomp is not in the air, and Cube Thwomp attributes have not already been updated to reflect that it is on the ground, then code is run to reflect that Cube Thwomp has just landed. In this code, a sound effect plays, Cube Thwomp attributes are updated to reflect that it is on the ground, the camera shakes, Cube Thwomp distance to its home is updated, and its forward velocity and timer are set to equal 0. If Cube Thwomp target yaw is not equal to its current yaw, Cube Thwomp will rotate at 5.625 degrees per frame until it reaches its target yaw. During this process, Cube Thwomp timer attribute is set to 0 continuously. This is what is run to turn Cube Thwomp around over the course of 32 frames. 60 frames after the target yaw has been reached, if Cube Thwomp is more than 300 units from its home, Cube Thwomp target yaw is increased by 180 degrees, and Cube Thwomp distance to its home is set to 0, changing its home to its current position and causing it to begin turning toward its target yaw again. If Cube Thwomp is not more than 300 units from its home, Cube Thwomp jumping action begins. In this action, a sound effect is played, Cube Thwomp forward velocity is set to 11 units/frame, Gindel’s Y-velocity is set to 70 units/frame, Cube Thwomp gravity is set to -4, and Cube Thwomp move flags attribute is set to 0. When Cube Thwomp is in the air, Cube Thwomp attributes are updated to reflect that it has left the ground, and if Cube Thwomp Y-velocity is less than 0, its gravity is set to -16. Overall, it takes 28 frames for Cube Thwomp to complete a full jump, its jump peaks at 648 units off the ground, and it moves forward a total of 308 units.

See Also

Thwomp

Spindel

Tox Box