MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / enemy_hit

Method enemy_hit

projects/Space Shooter/main.py:446–448  ·  view source on GitHub ↗
(self, enemy: Enemies)

Source from the content-addressed store, hash-verified

444 missile[1] += 2
445
446 def enemy_hit(self, enemy: Enemies):
447 if not enemy.alive:
448 self.reset_enemies(enemy, True)
449
450 def player_hit(self, collision: pygame.Rect):
451 # Checks if the player has been hit or not

Callers 2

enemy_type1_firingMethod · 0.95
enemy_type2_firingMethod · 0.95

Calls 1

reset_enemiesMethod · 0.95

Tested by

no test coverage detected