created game window

This commit is contained in:
Nicholas Dyer 2022-12-20 09:47:04 -05:00
parent 23b62c4c13
commit faa55f0b47
2 changed files with 19 additions and 0 deletions

View File

19
pypong/game_files/game.py Normal file
View File

@ -0,0 +1,19 @@
import pygame
SCREEN_SIZE = (640, 480) # Size of the game window
def game():
pygame.init()
window = pygame.display.set_mode(SCREEN_SIZE)
surface = pygame.Surface(SCREEN_SIZE)
running = True
while running:
pygame.display.flip()
def main():
game()