]> Skullheadx's Git Forge - word-hunt.git/commitdiff
pygame window
authorSkullheadx <704277@pdsb.net>
Mon, 21 Nov 2022 02:13:46 +0000 (21:13 -0500)
committerSkullheadx <704277@pdsb.net>
Mon, 21 Nov 2022 02:13:46 +0000 (21:13 -0500)
Main/__pycache__/setup.cpython-310.pyc [new file with mode: 0644]
Main/main.py [new file with mode: 0644]
Main/setup.py

diff --git a/Main/__pycache__/setup.cpython-310.pyc b/Main/__pycache__/setup.cpython-310.pyc
new file mode 100644 (file)
index 0000000..f71793c
Binary files /dev/null and b/Main/__pycache__/setup.cpython-310.pyc differ
diff --git a/Main/main.py b/Main/main.py
new file mode 100644 (file)
index 0000000..8bc2939
--- /dev/null
@@ -0,0 +1,13 @@
+from setup import *
+
+
+is_running = True
+
+while is_running:
+    screen.fill(Colour.WHITE)
+
+
+    if pygame.event.peek(pygame.QUIT):
+        is_running = False
+
+    pygame.display.update()
index b1a6a7cfd798ca68d7293856c1892360ed58ee63..dc7b6549c8ebf1ca9a803563855b03708934dcbd 100644 (file)
@@ -1,3 +1,21 @@
 import json
+import pygame
+import random
+
+# word list from https://github.com/dwyl/english-words
 with open("pruned_words.json", 'r') as f:
     word_list = json.load(f)
+
+
+
+pygame.init()
+# SCREEN_WIDTH, SCREEN_HEIGHT = 720, 720
+# dimensions = pygame.Vector2(SCREEN_WIDTH, SCREEN_HEIGHT)
+# center = pygame.Vector2(SCREEN_WIDTH/2, SCREEN_HEIGHT/2)
+screen = pygame.display.set_mode((0,0), pygame.RESIZABLE)
+
+pygame.display.set_caption("Word Hunt")
+
+
+class Colour:
+    WHITE = (255,255,255)