summaryrefslogtreecommitdiffhomepage
path: root/examples/physac/physics_restitution.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-04-17 17:25:27 +0200
committerraysan5 <[email protected]>2017-04-17 17:25:27 +0200
commit4b8a0268ede4bd56a7b06fd2e2ea056f933f0f10 (patch)
treeaa91563c12ad9181b8ffe00ff2201c5ef7fce2ca /examples/physac/physics_restitution.c
parent881f134f4d2fb4419d50382284e19b4f8ca4660e (diff)
downloadraylib-4b8a0268ede4bd56a7b06fd2e2ea056f933f0f10.tar.gz
raylib-4b8a0268ede4bd56a7b06fd2e2ea056f933f0f10.zip
Added physac examples to web
Some tweaks on original src files
Diffstat (limited to 'examples/physac/physics_restitution.c')
-rw-r--r--examples/physac/physics_restitution.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/physac/physics_restitution.c b/examples/physac/physics_restitution.c
index d58ec6e3..2be8f42e 100644
--- a/examples/physac/physics_restitution.c
+++ b/examples/physac/physics_restitution.c
@@ -28,7 +28,6 @@ int main()
SetConfigFlags(FLAG_MSAA_4X_HINT);
InitWindow(screenWidth, screenHeight, "Physac [raylib] - Physics restitution");
- SetTargetFPS(60);
// Physac logo drawing position
int logoX = screenWidth - MeasureText("Physac", 30) - 10;
@@ -49,6 +48,8 @@ int main()
circleB->restitution = 0.5f;
PhysicsBody circleC = CreatePhysicsBodyCircle((Vector2){ screenWidth*0.75f, screenHeight/2 }, 30, 10);
circleC->restitution = 1;
+
+ SetTargetFPS(60);
//--------------------------------------------------------------------------------------
// Main game loop