Fixed spacing and added more consistency with sinf() and cosf()

This commit is contained in:
Gianni Alessandroni 2021-05-10 19:49:00 +02:00
parent 1a79ffd766
commit 58c1c88e51

View File

@ -64,8 +64,8 @@ int main(void)
rotation += degreesPerSecond*GetFrameTime(); // Rotate the rectangles.
// Make the camera move to demonstrate the effect.
cameraX = (sin(GetTime()) * 50.0f) - 10.0f;
cameraY = cos(GetTime()) * 30.0f;
cameraX = (sinf(GetTime())*50.0f) - 10.0f;
cameraY = cosf(GetTime())*30.0f;
// Set the camera's target to the values computed above.
screenSpaceCamera.target = (Vector2){ cameraX, cameraY };