Adding in asteroid splitting

This commit is contained in:
franky212
2024-10-28 21:39:11 -06:00
parent 48acf7759a
commit c87eb4151b
2 changed files with 22 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ def main():
if asteroid.collision(player):
print("Game over!")
return
for bullet in shots:
if asteroid.collision(bullet):
bullet.kill()
asteroid.split()
pygame.display.flip()