collision logic

This commit is contained in:
2025-07-12 20:15:01 +02:00
parent 0ee85e61b2
commit 01a298e864
2 changed files with 8 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ def main():
updatable.update(dt)
for asteroid in asteroids:
if asteroid.is_colliding(player):
print("Game Over")
sys.exit(0)
for drawing in drawable:
drawing.draw(screen)