summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2024-09-20 16:52:21 +0200
committeryuzu-eva <stevenhu@web.de>2024-09-20 16:52:21 +0200
commit9e795071dc9aca96e513bf37ac941b0fe4aeccba (patch)
tree7e3f06d88cfdeb82324ac0b94eb7ab03e59a1a8e /main.py
Initial commit
Diffstat (limited to 'main.py')
-rw-r--r--main.py15
1 files changed, 15 insertions, 0 deletions
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()