added asteroid splitting
This commit is contained in:
parent
82882bab74
commit
e36416de3a
2 changed files with 17 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue