Revision 230
health bars
proj.c | ||
---|---|---|
187 | 187 |
|
188 | 188 |
if (gunner_collides_bullet(shooter1, bullet)) { |
189 | 189 |
printf("Bullet Collide with Shooter\n"); |
190 |
gunner_set_curr_health(shooter1, gunner_get_curr_health(shooter1) - bullet_get_damage(bullet)); |
|
190 | 191 |
} |
191 | 192 |
|
192 | 193 |
update_scale(); |
Also available in: Unified diff