diff options
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 94e3f97..0ec23c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,15 @@ int main(void) { // setup camera SetTargetFPS(60); + SetCameraMode(sc3d.camera, CAMERA_FIRST_PERSON); + sc3d.camera.position = (Vector3){50.0f, 1.0f, 50.0f}; + sc3d.camera.target = (Vector3){50.0f, 1.0f, 50.0f}; + sc3d.camera.up = (Vector3){0.0f, 1.0f, 0.0f}; + sc3d.camera.fovy = 90.0f; + sc3d.camera.projection = CAMERA_PERSPECTIVE; + + sc3d.rotation = (Vector3){0.0f, 0.0f, 0.0f}; + sc3d.lastMousePos = GetMousePosition(); // game loop while (!WindowShouldClose()) { switch (game_state) { |