aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-06-11 23:16:37 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-06-11 23:16:37 +0200
commite1f27e3fa0841beee491948ab1572e2cd894dbd8 (patch)
treeb492cb2ffc0f1f8dca2a76ce701678ed6871cf88
parentset clang++ and fix build issue (diff)
downloadyabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.gz
yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.bz2
yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.xz
yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.tar.zst
yabs-e1f27e3fa0841beee491948ab1572e2cd894dbd8.zip
mouse is captured again, pretty gud
-rw-r--r--src/main.cpp9
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) {