aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-11-25 11:26:26 +0100
committerRay <raysan5@gmail.com>2019-11-25 11:26:26 +0100
commit5ad65d9291c446eb4c7c54ff17c2bf11cdf6a118 (patch)
tree7c42fb7afe80e13534a0ea5c04c373bf9f0a58e5
parent776304e8e8deb79edb74d145111025eb66e03906 (diff)
downloadraylib-5ad65d9291c446eb4c7c54ff17c2bf11cdf6a118.tar.gz
raylib-5ad65d9291c446eb4c7c54ff17c2bf11cdf6a118.zip
Minor format tweaks
-rw-r--r--examples/core/core_world_screen.c4
-rw-r--r--examples/models/models_heightmap.c2
-rw-r--r--examples/models/models_rlgl_full_solar_system.c10
3 files changed, 8 insertions, 8 deletions
diff --git a/examples/core/core_world_screen.c b/examples/core/core_world_screen.c
index 31d3653d..be1a96b9 100644
--- a/examples/core/core_world_screen.c
+++ b/examples/core/core_world_screen.c
@@ -62,8 +62,8 @@ int main(void)
EndMode3D();
- DrawText("Enemy: 100 / 100", cubeScreenPosition.x - MeasureText("Enemy: 100 / 100", 20) / 2, cubeScreenPosition.y, 20, BLACK);
- DrawText("Text is always on top of the cube", (screenWidth - MeasureText("Text is always on top of the cube", 20)) / 2, 25, 20, GRAY);
+ DrawText("Enemy: 100 / 100", cubeScreenPosition.x - MeasureText("Enemy: 100/100", 20)/2, cubeScreenPosition.y, 20, BLACK);
+ DrawText("Text is always on top of the cube", (screenWidth - MeasureText("Text is always on top of the cube", 20))/2, 25, 20, GRAY);
EndDrawing();
//----------------------------------------------------------------------------------
diff --git a/examples/models/models_heightmap.c b/examples/models/models_heightmap.c
index a2c2e310..bf7b0e0a 100644
--- a/examples/models/models_heightmap.c
+++ b/examples/models/models_heightmap.c
@@ -21,7 +21,7 @@ int main(void)
InitWindow(screenWidth, screenHeight, "raylib [models] example - heightmap loading and drawing");
// Define our custom camera to look into our 3d world
- Camera camera = { { 18.0f, 16.0f, 18.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 };
+ Camera camera = { { 18.0f, 18.0f, 18.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 };
Image image = LoadImage("resources/heightmap.png"); // Load heightmap image (RAM)
Texture2D texture = LoadTextureFromImage(image); // Convert image to texture (VRAM)
diff --git a/examples/models/models_rlgl_full_solar_system.c b/examples/models/models_rlgl_full_solar_system.c
index f8ab7f1d..3dd8846d 100644
--- a/examples/models/models_rlgl_full_solar_system.c
+++ b/examples/models/models_rlgl_full_solar_system.c
@@ -47,8 +47,8 @@ int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
- const int screenWidth = 1024;
- const int screenHeight = 768;
+ const int screenWidth = 800;
+ const int screenHeight = 450;
const char *text;
bool gridEnabled = true;
bool helpEnabled = false;
@@ -67,9 +67,6 @@ int main(void)
SetCameraMode(camera, CAMERA_FREE);
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
- //--------------------------------------------------------------------------------------
-
// Create Bodies
Body sun = CreateBody(0.2, 0.0, 0, GOLD, "sun");
Body moon = CreateBody(0.05, 0.200, 24, GRAY, "moon");
@@ -94,6 +91,9 @@ int main(void)
AddBodyChildren(&sun, &pluto);
AddBodyChildren(&earth, &moon);
+
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
+ //--------------------------------------------------------------------------------------
// Main game loop
while (!WindowShouldClose()) // Detect window close button or ESC key