From 9e795071dc9aca96e513bf37ac941b0fe4aeccba Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 20 Sep 2024 16:52:21 +0200 Subject: Initial commit --- main.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.py (limited to 'main.py') diff --git a/main.py b/main.py new file mode 100644 index 0000000..e91ba28 --- /dev/null +++ b/main.py @@ -0,0 +1,15 @@ +import pygame +from constants import * + +def main(): + pygame.init() + screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) + while True: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + return + screen.fill("black") + pygame.display.flip() + +if __name__ == "__main__": + main() -- cgit v1.2.3