updated files
This commit is contained in:
@@ -4,8 +4,13 @@ import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
||||
pygame.init()
|
||||
screen = pygame.display.set_mode((1920, 1080))
|
||||
|
||||
infoObject = pygame.display.Info()
|
||||
|
||||
ScreenResolution = (infoObject.current_w, infoObject.current_h)
|
||||
screen = pygame.display.set_mode(ScreenResolution)
|
||||
pygame.display.set_caption("pong")
|
||||
clock = pygame.time.Clock()
|
||||
font = pygame.font.SysFont(None, 55)
|
||||
@@ -38,6 +43,7 @@ rect_width = 10
|
||||
rect_height = 10
|
||||
|
||||
menu = True
|
||||
aiSpeed = 0.4
|
||||
while menu:
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.QUIT:
|
||||
@@ -73,13 +79,6 @@ while menu:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
while True:
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.QUIT:
|
||||
|
||||
Reference in New Issue
Block a user