(health, x, y)
| 343 | |
| 344 | |
| 345 | def draw_health_bar(health, x, y): |
| 346 | pygame.draw.rect(screen, BLACK, (x, y, 200, 20)) |
| 347 | if health > 0: |
| 348 | pygame.draw.rect(screen, RED, (x, y, health * 2, 20)) |
| 349 | pygame.draw.rect(screen, WHITE, (x, y, 200, 20), 2) |
| 350 | |
| 351 | |
| 352 | def countdown(): |