We're going to employ delta time to make our cycle move at a constant speed instead of a speed based on frame rate. Once we have that done, we'll learn how to use delta time to protect against hiccups in the game— moments when the time between frames is abnormally large, and could cause the action to skip forward.
dt = globalClock.getDt()
globalClockin one go. The delta time we get will be in full seconds, so if we want our cycle to move at 10 units per second, we need to change our call to