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