summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-03-04 21:07:46 +0200
committerDrNuget <drnuget@outlook.com>2025-03-04 21:07:46 +0200
commitc23947247f76a519795e82c15c1ef01f4b4d58bc (patch)
treec071d59a677ff25ddd6283fac885e83a53110a8f /src/main.c
parentde1c7a212835741946d562bc926a4287151c9ffb (diff)
some broken shitHEADmaster
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/main.c b/src/main.c
index 663fe63..d5cbf34 100644
--- a/src/main.c
+++ b/src/main.c
@@ -65,6 +65,18 @@ int main(void)
{1,0,0,0,0,0,0,0,0,1},
{1,1,1,1,1,1,1,1,1,1}
},
+{
+ {1,1,1,1,1,1,1,1,1,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,0,0,0,0,0,0,0,0,1},
+ {1,1,1,1,1,1,1,1,1,1}
+ }
}
};
@@ -78,17 +90,7 @@ int main(void)
.fovy = 60.0f,
.projection = CAMERA_PERSPECTIVE,
},
- .hitbox = createHitbox((Vector3[]){
- { 1.0f, 0.0f, 1.0f},
- { 1.0f, 0.0f, -1.0f},
- {-1.0f, 0.0f, 1.0f},
- { 1.0f, 0.0f, -1.0f},
-
- { 1.0f, 2.0f, 1.0f},
- { 1.0f, 2.0f, -1.0f},
- {-1.0f, 2.0f, 1.0f},
- { 1.0f, 2.0f, -1.0f},
- }),
+ .hitbox = (Vector3){1.0f, 2.0f, 1.0f}
};
player.camera.position = (Vector3){5.0f,10.0f,5.0f};
@@ -107,9 +109,9 @@ int main(void)
);
//UpdateCamera(&player.camera, cameraMode);
handleInput(&player);
- handleCollision(&world, &player);
- handleGravity(&world, &player);
handleMovement(&player);
+ handleGravity(&world, &player);
+ handleCollision(&world, &player);
BeginDrawing();
BeginMode3D(player.camera);