summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-03-03 19:37:38 +0200
committerDrNuget <drnuget@outlook.com>2025-03-03 19:37:38 +0200
commitde1c7a212835741946d562bc926a4287151c9ffb (patch)
tree0ac2c2217abf815ca2fde0c047020c99d2ad1613 /src/main.c
parent23dac85d2f600f0073e77bf83f4a544f3a087416 (diff)
change some floats to ints, add deltatime to movement
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3934c2a..663fe63 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,9 +28,9 @@ void handleInput(Player *player)
player->velocity.y=1.0f;
}
if (IsKeyDown(KEY_LEFT_CONTROL)) {
- player->speed = 0.06f;
+ player->speed = 8;
} else {
- player->speed = 0.04f;
+ player->speed = 6;
}
}
@@ -71,7 +71,7 @@ int main(void)
Player player = {
.pos = (Vector3){5.0f, 10.0f, 5.0f},
.velocity = (Vector3){0.0f, 0.0f, 0.0f},
- .speed = 0.04f,
+ .speed = 10,
.camera = (Camera3D){
.target = (Vector3){0.0f, 0.0f, 0.0f},
.up = (Vector3){0.0f, 1.0f, 0.0f},