From a990e865d3d6408e9ddaf2ec658986e000643534 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 30 Jul 2023 14:57:43 +0530 Subject: testing code --- game.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'game.py') 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) -- cgit v1.2.3