asteroids/main.py

20 lines
495 B
Python
Raw Normal View History

2024-10-08 12:38:46 +00:00
import pygame
from constants import *
def main():
print('Starting asteroids!')
print(f"Screen width: {SCREEN_WIDTH}")
print(f"Screen height: {SCREEN_HEIGHT}")
pygame.init()
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
while True:
2024-10-08 13:08:41 +00:00
for event in pygame.event.get():
if event.type == pygame.QUIT:
return
2024-10-08 12:38:46 +00:00
pygame.Surface.fill(screen, (0,0,0))
pygame.display.flip()
if __name__ == "__main__":
main()