diff options
| author | Ray <[email protected]> | 2018-05-11 18:14:51 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-05-11 18:14:51 +0200 |
| commit | 245704df723343fd274f77589164c6e9984aef8b (patch) | |
| tree | 658186f23b7684ed46908db3f3ddf22f0fc83f5b /examples/core | |
| parent | 07901711250dff5eceac27f0a4e802833fe24b6f (diff) | |
| download | raylib-245704df723343fd274f77589164c6e9984aef8b.tar.gz raylib-245704df723343fd274f77589164c6e9984aef8b.zip | |
Reviewed examples
Diffstat (limited to 'examples/core')
| -rw-r--r-- | examples/core/core_3d_camera_free.c | 1 | ||||
| -rw-r--r-- | examples/core/core_3d_mode.c | 1 | ||||
| -rw-r--r-- | examples/core/core_3d_picking.c | 1 | ||||
| -rw-r--r-- | examples/core/core_input_keys.c | 8 |
4 files changed, 7 insertions, 4 deletions
diff --git a/examples/core/core_3d_camera_free.c b/examples/core/core_3d_camera_free.c index 81f04c13..9131ddf8 100644 --- a/examples/core/core_3d_camera_free.c +++ b/examples/core/core_3d_camera_free.c @@ -26,6 +26,7 @@ int main() camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target) camera.fovy = 45.0f; // Camera field-of-view Y + camera.type = CAMERA_PERSPECTIVE; // Camera mode type Vector3 cubePosition = { 0.0f, 0.0f, 0.0f }; diff --git a/examples/core/core_3d_mode.c b/examples/core/core_3d_mode.c index 705bcb7a..39c0752a 100644 --- a/examples/core/core_3d_mode.c +++ b/examples/core/core_3d_mode.c @@ -26,6 +26,7 @@ int main() camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target) camera.fovy = 45.0f; // Camera field-of-view Y + camera.type = CAMERA_PERSPECTIVE; // Camera mode type Vector3 cubePosition = { 0.0f, 0.0f, 0.0f }; diff --git a/examples/core/core_3d_picking.c b/examples/core/core_3d_picking.c index cd390d91..1c63e2a7 100644 --- a/examples/core/core_3d_picking.c +++ b/examples/core/core_3d_picking.c @@ -26,6 +26,7 @@ int main() camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target) camera.fovy = 45.0f; // Camera field-of-view Y + camera.type = CAMERA_PERSPECTIVE; // Camera mode type Vector3 cubePosition = { 0.0f, 1.0f, 0.0f }; Vector3 cubeSize = { 2.0f, 2.0f, 2.0f }; diff --git a/examples/core/core_input_keys.c b/examples/core/core_input_keys.c index b2305246..69384fd9 100644 --- a/examples/core/core_input_keys.c +++ b/examples/core/core_input_keys.c @@ -30,10 +30,10 @@ int main() { // Update //---------------------------------------------------------------------------------- - if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 0.8f; - if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 0.8f; - if (IsKeyDown(KEY_UP)) ballPosition.y -= 0.8f; - if (IsKeyDown(KEY_DOWN)) ballPosition.y += 0.8f; + if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 2.0f; + if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 2.0f; + if (IsKeyDown(KEY_UP)) ballPosition.y -= 2.0f; + if (IsKeyDown(KEY_DOWN)) ballPosition.y += 2.0f; //---------------------------------------------------------------------------------- // Draw |
