chore: fix \n

This commit is contained in:
2025-10-06 21:30:13 +01:00
parent 72a86ddb41
commit f93b543924
2 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ void UpdateBandit(F32 delta, Bandit *bandit, World *world) {
}
if (AABB_Circle(bandit->agroRadius, AABB_Centre(bandit->collision), world->player.collision) && !(bandit->mode == BANDIT_SHOOTING || bandit->mode == BANDIT_SHOOTOUT))
{
printf("begin shootout");
printf("begin shootout\n");
// shootout time o.o
bandit->mode = BANDIT_SHOOTOUT;
}
@@ -71,17 +71,17 @@ void UpdateBandit(F32 delta, Bandit *bandit, World *world) {
bandit->reloadTimer -= delta;
if (bandit->shootCooldownTimer < 0 && bandit->reloadTimer < 0)
{
printf("shoot at player");
printf("shoot at player\n");
bandit->bullets--;
bandit->shootCooldownTimer = bandit->shootDelay;
V2f banditShot = shootTowards(bandit, world->player.collision.pos, &world->random);
if(AABB_Slab(bandit->collision.pos, banditShot, world->player.collision)){
// gets shot lmao
printf("hit");
printf("hit\n");
world->player.health--;
}
if(bandit->bullets == 0){
printf("enemy reload");
printf("enemy reload\n");
bandit->bullets = 6;
bandit->reloadTimer = bandit->reloadTime;
}