Fixed spacing and added more consistency with sinf() and cosf()
This commit is contained in:
parent
1a79ffd766
commit
58c1c88e51
|
|
@ -64,8 +64,8 @@ int main(void)
|
||||||
rotation += degreesPerSecond*GetFrameTime(); // Rotate the rectangles.
|
rotation += degreesPerSecond*GetFrameTime(); // Rotate the rectangles.
|
||||||
|
|
||||||
// Make the camera move to demonstrate the effect.
|
// Make the camera move to demonstrate the effect.
|
||||||
cameraX = (sin(GetTime()) * 50.0f) - 10.0f;
|
cameraX = (sinf(GetTime())*50.0f) - 10.0f;
|
||||||
cameraY = cos(GetTime()) * 30.0f;
|
cameraY = cosf(GetTime())*30.0f;
|
||||||
|
|
||||||
// Set the camera's target to the values computed above.
|
// Set the camera's target to the values computed above.
|
||||||
screenSpaceCamera.target = (Vector2){ cameraX, cameraY };
|
screenSpaceCamera.target = (Vector2){ cameraX, cameraY };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user