aboutsummaryrefslogtreecommitdiff
path: root/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'game.py')
-rw-r--r--game.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/game.py b/game.py
index b9f5507..d041444 100644
--- a/game.py
+++ b/game.py
@@ -115,7 +115,11 @@ class MyGame:
# Draw the camera feed as the background
self.screen.blit(frame_pygame, (0, 0))
- self.detect_collision(x,y)
+
+ try:
+ self.detect_collision(x,y)
+ except:
+ print('passing')
# Draw the cockroach panel x,yon top of the camera feed
for cockroach in self.cockroaches:
cockroach.draw(self.screen)