feat: add constants for screen size

This commit is contained in:
Stevan Freeborn
2026-05-21 15:10:25 -05:00
parent ce3a50a68b
commit d7c82ab30e
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
SCREEN_WIDTH = 1280
SCREEN_HEIGHT = 720
+4 -1
View File
@@ -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()