summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
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()