summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index 6081f2a..2a2328d 100644
--- a/main.py
+++ b/main.py
@@ -36,6 +36,10 @@ def main():
for obj in updatable:
obj.update(dt)
for asteroid in asteroids:
+ for bullet in shots:
+ if bullet.collision_check(asteroid):
+ bullet.kill()
+ asteroid.kill()
if asteroid.collision_check(player):
print("Game over!")
return