aboutsummaryrefslogtreecommitdiff
path: root/game.py
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2023-07-30 14:18:24 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2023-07-30 14:18:24 +0530
commited5c28b2df28d123dc67304dc57ddd4092fa72ee (patch)
tree050c2217410d6edda797ea794ca2d5264662ecc8 /game.py
parent4efd7fb7e0fc0a8be4532597733710415f3ce568 (diff)
clean up cockroach
Diffstat (limited to 'game.py')
-rw-r--r--game.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/game.py b/game.py
index 95bbcdc..82f1c66 100644
--- a/game.py
+++ b/game.py
@@ -3,14 +3,14 @@ import numpy as np
import pygame
import random
import threading
-from cockroach_game import Cockroach
+from cockroach import Cockroach
# Initialize Pygame
pygame.init()
# Define screen dimensions
-SCREEN_WIDTH = 802
-SCREEN_HEIGHT = 601
+SCREEN_WIDTH = 600
+SCREEN_HEIGHT = 400
# Load cockroach image
cockroach_image = pygame.image.load('res/cockroach.png')
@@ -87,7 +87,7 @@ class MyGame:
frame_pygame = pygame.surfarray.make_surface(frame_rgb)
# Draw the camera feed as the background
- self.screen.blit(frame_pygame, (80, 60))
+ self.screen.blit(frame_pygame, (0, 0))
# Draw the cockroach panel on top of the camera feed
for cockroach in cockroaches: