clarification
This commit is contained in:
parent
a7271fb9fa
commit
ad2ddc8bea
|
|
@ -88,7 +88,7 @@ int main(void)
|
||||||
SetTargetFPS(currentFps);
|
SetTargetFPS(currentFps);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use of delta time to make the circle look like it's moving at a "consistent" speed regardless of FPS.
|
// Use of delta time to make the circle look like it's moving at a "consistent" speed regardless of FPS. GetFrameTime() returns this frame's delta time.
|
||||||
// Multiply by 6.0 (an arbitrary value) in order to make the speed visually closer to the other circle (at 60 fps), for comparison.
|
// Multiply by 6.0 (an arbitrary value) in order to make the speed visually closer to the other circle (at 60 fps), for comparison.
|
||||||
deltaX += GetFrameTime() * 6.0 * speed;
|
deltaX += GetFrameTime() * 6.0 * speed;
|
||||||
// This circle can move faster or slower visually depending on the FPS.
|
// This circle can move faster or slower visually depending on the FPS.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user