aboutsummaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-06-22 09:30:49 -0500
committerfoswret <foswret@posteo.com>2025-06-22 09:30:49 -0500
commit4648092b6c5d71eaba541dabe681f43f4e9101b0 (patch)
tree8bd771b7cf6b9791790b32d852034b11e7d6315b /gui.py
parent15e1e7d1d71a050e17ece17b8ca5ea3883363af4 (diff)
Cleaned up code, added gui.py
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/gui.py b/gui.py
new file mode 100644
index 0000000..f80a5f4
--- /dev/null
+++ b/gui.py
@@ -0,0 +1,24 @@
+import pygame, sys
+from pygame.locals import *
+
+pygame.init()
+
+BLACK = (0, 0, 0)
+GRAY = (99, 99, 99)
+WHITE = (255, 255, 255)
+WINDOW_HEIGHT = 400
+WINDOW_WIDTH = 400
+GRID_HEIGHT = 5
+GRID_WIDTH = 4
+
+displaySurface = pygame.display.set_mode((WINDOW_WIDTH, WINDOW_HEIGHT), 0, 32)
+pygame.display.set_caption('Charlie Chunker GUI Ver. 0.1')
+
+displaySurface.fill(GRAY)
+
+while True:
+ for event in pygame.event.get():
+ if event.type == QUIT:
+ pygame.quit()
+ sys.exit()
+ pygame.display.update()