diff options
author | Destinyyyyyyy <abhiramvsa7@gmail.com> | 2023-07-30 14:24:27 +0530 |
---|---|---|
committer | Destinyyyyyyy <abhiramvsa7@gmail.com> | 2023-07-30 14:24:27 +0530 |
commit | bf8050124434b5b3c5bb1ba1eb64496e7df59355 (patch) | |
tree | a5ee080b3847c593527d52d2563b32192098e621 /game.py | |
parent | c812be8340dac3fe300b5e1248831f385308ceb5 (diff) | |
parent | ed5c28b2df28d123dc67304dc57ddd4092fa72ee (diff) |
Merge branch 'main' of https://github.com/compromyse/cockroach_fight
Diffstat (limited to 'game.py')
-rw-r--r-- | game.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |