diff options
| author | Ray <[email protected]> | 2017-10-20 00:17:24 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-10-20 00:17:24 +0200 |
| commit | 48daec567f8d22e4492eb47b878d7ff86024f97a (patch) | |
| tree | 14dfb6feec1e4a7a6c03e0a37825aa7703de57d3 /examples/src/physac/physics_movement.c | |
| parent | 1be9753752eaee413d584b4e9b1de383ba217ecf (diff) | |
| download | raylib.com-48daec567f8d22e4492eb47b878d7ff86024f97a.tar.gz raylib.com-48daec567f8d22e4492eb47b878d7ff86024f97a.zip | |
Reviewed examples code to 1.8
Diffstat (limited to 'examples/src/physac/physics_movement.c')
| -rw-r--r-- | examples/src/physac/physics_movement.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/src/physac/physics_movement.c b/examples/src/physac/physics_movement.c index 534997b..4b2c9ab 100644 --- a/examples/src/physac/physics_movement.c +++ b/examples/src/physac/physics_movement.c @@ -30,7 +30,6 @@ int main() SetConfigFlags(FLAG_MSAA_4X_HINT); InitWindow(screenWidth, screenHeight, "Physac [raylib] - Physics movement"); - SetTargetFPS(60); // Physac logo drawing position int logoX = screenWidth - MeasureText("Physac", 30) - 10; @@ -56,6 +55,8 @@ int main() // Create movement physics body PhysicsBody body = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight/2 }, 50, 50, 1); body->freezeOrient = true; // Constrain body rotation to avoid little collision torque amounts + + SetTargetFPS(60); //-------------------------------------------------------------------------------------- // Main game loop @@ -119,7 +120,7 @@ int main() // De-Initialization //-------------------------------------------------------------------------------------- - ClosePhysics(); // Uninitialize physics + ClosePhysics(); // Unitialize physics CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- |
