From 123e581f76d58df67bcf041f510c529601dae502 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Fri, 22 Dec 2023 00:38:28 -0700 Subject: Finally have a real game play loop --- src/entities/antifaShip.c | 2 +- src/entities/missile.c | 6 +++--- src/entities/mussolini.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/entities') diff --git a/src/entities/antifaShip.c b/src/entities/antifaShip.c index 0f64d14..15350cd 100644 --- a/src/entities/antifaShip.c +++ b/src/entities/antifaShip.c @@ -231,7 +231,7 @@ void controlAntifaShipKeyboardAndMouse(Game * game, Entity * entity) { else if (IsKeyDown(KEY_LEFT_CONTROL)) speedMod = game->settings.speedMod; - printf("%f\n", speedMod); + //printf("%f\n", speedMod); data->forwardSpeed += (speed * game->settings.scrollBarSpeed * speedMod); diff --git a/src/entities/missile.c b/src/entities/missile.c index beb167c..df0b48d 100644 --- a/src/entities/missile.c +++ b/src/entities/missile.c @@ -49,13 +49,13 @@ void updateMissile(Game * game, Entity * entity) { if (data->timeToLive != MISSILE_LIVE_FOREVER) if (GetTime() - data->birthDay >= data->timeToLive) { missileGoBoomBoom(game, entity); - puts("counted downa downasdjkfdjskl down"); + //puts("counted downa downasdjkfdjskl down"); } // We are quite close to the player indeed. if (Vector3Distance(player->position, entity->position) <= data->boomBoomAt) { missileGoBoomBoom(game, entity); - puts("you were fucking hit by this big ass missile"); + //puts("you were fucking hit by this big ass missile"); } entityCheckTransformedCollisionModel(entity); @@ -115,5 +115,5 @@ void missileGoBoomBoom(Game * game, Entity * entity) { entity->health = 0.0; - printf("This old fuck did %f damage at %f distance\n", damage, distance); + //printf("This old fuck did %f damage at %f distance\n", damage, distance); } diff --git a/src/entities/mussolini.c b/src/entities/mussolini.c index a7428da..95810b5 100644 --- a/src/entities/mussolini.c +++ b/src/entities/mussolini.c @@ -69,7 +69,7 @@ void updateMussoliniGuns(Game * game, Entity * entity) { startMissileCountDown(&missile, 4.0); scheduleEntityToAdd(&game->world, missile); - puts("shoot shoot"); + //puts("shoot shoot"); data->timeSinceLastMissile = t; } -- cgit v1.2.3