From faa55f0b47f57010ebf65bf278bafc01ebf6122b Mon Sep 17 00:00:00 2001 From: ndyer Date: Tue, 20 Dec 2022 09:47:04 -0500 Subject: [PATCH] created game window --- pypong/game_files/__init__.py | 0 pypong/game_files/game.py | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 pypong/game_files/__init__.py create mode 100644 pypong/game_files/game.py diff --git a/pypong/game_files/__init__.py b/pypong/game_files/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pypong/game_files/game.py b/pypong/game_files/game.py new file mode 100644 index 0000000..5140621 --- /dev/null +++ b/pypong/game_files/game.py @@ -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()