aboutsummaryrefslogtreecommitdiff
path: root/game.py
diff options
context:
space:
mode:
authorDestinyyyyyyy <abhiramvsa7@gmail.com>2023-07-30 14:24:27 +0530
committerDestinyyyyyyy <abhiramvsa7@gmail.com>2023-07-30 14:24:27 +0530
commitbf8050124434b5b3c5bb1ba1eb64496e7df59355 (patch)
treea5ee080b3847c593527d52d2563b32192098e621 /game.py
parentc812be8340dac3fe300b5e1248831f385308ceb5 (diff)
parented5c28b2df28d123dc67304dc57ddd4092fa72ee (diff)
Merge branch 'main' of https://github.com/compromyse/cockroach_fight
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: