diff --git a/src/main.c b/src/main.c index 34fbf6b..888b4bd 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ #include "raylib.h" -static void DrawLevel() +static void DrawLevel() { const Vector3 towerSize = (Vector3){ 16.0f, 32.0f, 16.0f }; @@ -18,7 +18,7 @@ static void DrawLevel() towerPos.x *= -1; DrawCubeV(towerPos, towerSize, RED); - DrawCubeWiresV(towerPos, towerSize, BLACK); + DrawCubeWiresV(towerPos, towerSize, BLACK); } int main() @@ -27,16 +27,15 @@ int main() SetTargetFPS(60); Camera3D camera = { 0 }; - camera.position = (Vector3){ 10.0f, 10.0f, 10.0f }; - camera.target = (Vector3){ 0.0f, 12.0f, 0.0f }; - camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; - camera.fovy = 60.0f; - camera.projection = CAMERA_PERSPECTIVE; + camera.position = (Vector3){ 10.0f, 10.0f, 10.0f }; + camera.target = (Vector3){ 0.0f, 12.0f, 0.0f }; + camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; + camera.fovy = 60.0f; + camera.projection = CAMERA_PERSPECTIVE; while (!WindowShouldClose()) { UpdateCamera(&camera, CAMERA_FREE); - DisableCursor(); - if(IsKeyPressed(KEY_Z)) camera.target = (Vector3){0.0f, 0.0f, 0.0f}; + DisableCursor(); BeginDrawing(); ClearBackground(RAYWHITE);