From d7c82ab30eff1a709c8c696eaafdfa4692bd9330 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Thu, 21 May 2026 15:10:25 -0500 Subject: [PATCH] feat: add constants for screen size --- constants.py | 3 +++ main.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 constants.py diff --git a/constants.py b/constants.py new file mode 100644 index 0000000..cb8a938 --- /dev/null +++ b/constants.py @@ -0,0 +1,3 @@ +SCREEN_WIDTH = 1280 +SCREEN_HEIGHT = 720 + diff --git a/main.py b/main.py index 2012146..af583b6 100644 --- a/main.py +++ b/main.py @@ -2,10 +2,13 @@ import pygame +from constants import SCREEN_HEIGHT, SCREEN_WIDTH + def main(): """Main method for asteroids game""" print(f"Starting Asteroids with pygame version: {pygame.version.ver}") - + print(f"Screen width: {SCREEN_WIDTH}") + print(f"Screen height: {SCREEN_HEIGHT}") if __name__ == "__main__": main()