InitBresen (Kernel)

InitBresen(mover [stepMult])

Initializes the mover object for its movement to its x and y coordinates. It uses the Bresenham line algorithm to figure out how much to move each step resulting in a direct path from its client’s coordinates to its x and y.

Parameters:
  • mover (heapPtr) – An instance of a Motion class.
  • stepMult (number) – Optional multiplier.

If stepMult is specified, it will move xStep * stepMult and yStep * stepMult.

See also: DoBresen().