feat: add constants for screen size
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
SCREEN_WIDTH = 1280
|
||||||
|
SCREEN_HEIGHT = 720
|
||||||
|
|
||||||
@@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
|
from constants import SCREEN_HEIGHT, SCREEN_WIDTH
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main method for asteroids game"""
|
"""Main method for asteroids game"""
|
||||||
print(f"Starting Asteroids with pygame version: {pygame.version.ver}")
|
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__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user