aboutsummaryrefslogtreecommitdiff
path: root/game.py
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2023-07-30 14:57:43 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2023-07-30 14:57:43 +0530
commita990e865d3d6408e9ddaf2ec658986e000643534 (patch)
tree33ea22e1af4607708abcad010fa1d5a9955709a6 /game.py
parent7b617bed8d197fced112b91afb901fbcb964809e (diff)
testing code
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)