player health

This commit is contained in:
2025-10-06 17:45:58 +01:00
parent fcc7adfb22
commit d54b4df4c2
4 changed files with 7 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ void UpdateBandit(F32 delta, Bandit *bandit, World *world) {
if(AABB_Slab(bandit->collision.pos, banditShot, world->player.collision)){
// gets shot lmao
printf("hit");
world->player.health--;
}
if(bandit->bullets == 0){
printf("enemy reload");