aboutsummaryrefslogtreecommitdiff
path: root/game.py
diff options
context:
space:
mode:
authorDestinyyyyyyy <abhiramvsa7@gmail.com>2023-07-30 16:49:30 +0530
committerDestinyyyyyyy <abhiramvsa7@gmail.com>2023-07-30 16:49:30 +0530
commit7b660120b29dfddb6228ed61fa3158f53d031f90 (patch)
treedc0ca44c06e61a256775ba952c216873a0501dab /game.py
parent95632b625fcccb3076b638c06874b353b6342bfe (diff)
parent70cff6174240c575300abbf39955845bb4a506fc (diff)
Merge branch 'main' of https://github.com/compromyse/cockroach_fight
Diffstat (limited to 'game.py')
-rw-r--r--game.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/game.py b/game.py
index ba39ab9..093112e 100644
--- a/game.py
+++ b/game.py
@@ -13,13 +13,13 @@ from asteroid import Asteroid
pygame.init()
# Define screen dimensions
-SCREEN_WIDTH = 600
-SCREEN_HEIGHT = 400
+SCREEN_WIDTH = 1920
+SCREEN_HEIGHT = 1080
class MyGame:
def __init__(self) -> None:
# Open the webcam (0 is usually the default)
- self.cap = cv2.VideoCapture(0)
+ self.cap = cv2.VideoCapture('rtsp://10.20.89.139:8080/h264_aac.sdp')
# Create a list to hold cockroaches
self.cockroaches = []