The program demonstrate how to properly make a 90 degree turn and still maintain constant linear speed. Remember the formula: The speed of a moving object equals the animation clock speed times the distance traveled per tic.
For example, suppose you set delta = 20.0; that means your object moves 20 pixels per clock tic. Also, suppose the clock speed is 45 Hz. Then the true linear speed of the object is
linear speed = 6 pix/tic times 45 tics/second = 270pix/second. That is the linear speed in pixels per second.
Caution: This program has two serious defects.
1. Do not set a direct value for delta. You should set a value for object_speed. Then compute the value for delta by dividing object_ speed by motion_clock_rate. This program sets the delta number in the wrong way.
2.This UI is not constructed from panels laid on a form. Instead the objects are attached directly to the underlying form. That is a very unprofessional way to build a UI. Construction of a UI begins with panels.
Next look at Ninety degree turn 2.0, where we hope some of these defects will be fixed.