added asteroid splitting

This commit is contained in:
specCon18 2025-01-21 04:21:39 -05:00
parent 82882bab74
commit e36416de3a
2 changed files with 17 additions and 1 deletions

View file

@ -58,7 +58,7 @@ def main():
for asteroid in asteroids:
for shot in shots:
if shot.is_colided(asteroid):
asteroid.kill()
asteroid.split()
shot.kill()
pygame.display.flip()
tick = clock.tick(60)