diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2023-07-30 14:57:43 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2023-07-30 14:57:43 +0530 |
commit | a990e865d3d6408e9ddaf2ec658986e000643534 (patch) | |
tree | 33ea22e1af4607708abcad010fa1d5a9955709a6 | |
parent | 7b617bed8d197fced112b91afb901fbcb964809e (diff) |
testing code
-rw-r--r-- | game.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |