player health
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user