summaryrefslogtreecommitdiffhomepage
path: root/examples/src/physac/physics_shatter.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/physac/physics_shatter.c')
-rw-r--r--examples/src/physac/physics_shatter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/src/physac/physics_shatter.c b/examples/src/physac/physics_shatter.c
index b237bfc..6b474cd 100644
--- a/examples/src/physac/physics_shatter.c
+++ b/examples/src/physac/physics_shatter.c
@@ -28,7 +28,6 @@ int main()
SetConfigFlags(FLAG_MSAA_4X_HINT);
InitWindow(screenWidth, screenHeight, "Physac [raylib] - Body shatter");
- SetTargetFPS(60);
// Physac logo drawing position
int logoX = screenWidth - MeasureText("Physac", 30) - 10;
@@ -40,6 +39,8 @@ int main()
// Create random polygon physics body to shatter
PhysicsBody body = CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
+
+ SetTargetFPS(60);
//--------------------------------------------------------------------------------------
// Main game loop
@@ -104,7 +105,7 @@ int main()
// De-Initialization
//--------------------------------------------------------------------------------------
- ClosePhysics(); // Uninitialize physics
+ ClosePhysics(); // Unitialize physics
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------