diff options
| author | raysan5 <[email protected]> | 2020-12-24 13:26:30 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-12-24 13:26:30 +0100 |
| commit | 83ab2cb01746a869b625c9d84fbb4737146b73a9 (patch) | |
| tree | 010b0794848d863916e5acb4f766ea9e7ecb6e90 /examples/web/physics | |
| parent | d11274dcfcb0f349fba16ab4b83d2b96bcac8d1a (diff) | |
| download | raylib.com-83ab2cb01746a869b625c9d84fbb4737146b73a9.tar.gz raylib.com-83ab2cb01746a869b625c9d84fbb4737146b73a9.zip | |
Updated Web examples to raylib 3.5
Diffstat (limited to 'examples/web/physics')
| -rw-r--r-- | examples/web/physics/physics_demo.c | 2 | ||||
| -rw-r--r-- | examples/web/physics/physics_friction.c | 2 | ||||
| -rw-r--r-- | examples/web/physics/physics_movement.c | 2 | ||||
| -rw-r--r-- | examples/web/physics/physics_restitution.c | 2 | ||||
| -rw-r--r-- | examples/web/physics/physics_shatter.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/web/physics/physics_demo.c b/examples/web/physics/physics_demo.c index b3807f5..2004320 100644 --- a/examples/web/physics/physics_demo.c +++ b/examples/web/physics/physics_demo.c @@ -66,7 +66,7 @@ int main(void) circle->enabled = false; // Disable body state to convert it to static (no dynamics, but collisions) #if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); + emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- diff --git a/examples/web/physics/physics_friction.c b/examples/web/physics/physics_friction.c index 78353e6..422c108 100644 --- a/examples/web/physics/physics_friction.c +++ b/examples/web/physics/physics_friction.c @@ -86,7 +86,7 @@ int main(void) SetPhysicsBodyRotation(bodyB, 330*DEG2RAD); #if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); + emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- diff --git a/examples/web/physics/physics_movement.c b/examples/web/physics/physics_movement.c index 6c90f24..250afca 100644 --- a/examples/web/physics/physics_movement.c +++ b/examples/web/physics/physics_movement.c @@ -78,7 +78,7 @@ int main(void) #if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); + emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- diff --git a/examples/web/physics/physics_restitution.c b/examples/web/physics/physics_restitution.c index ccd1610..f5165d2 100644 --- a/examples/web/physics/physics_restitution.c +++ b/examples/web/physics/physics_restitution.c @@ -72,7 +72,7 @@ int main(void) circleC->restitution = 1; #if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); + emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- diff --git a/examples/web/physics/physics_shatter.c b/examples/web/physics/physics_shatter.c index cf4bd34..095f63d 100644 --- a/examples/web/physics/physics_shatter.c +++ b/examples/web/physics/physics_shatter.c @@ -61,7 +61,7 @@ int main(void) body = CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10); #if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); + emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- |
