]> Skullheadx's Git Forge - word-hunt.git/commitdiff
logo added testing
authorSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Fri, 25 Nov 2022 18:17:58 +0000 (13:17 -0500)
committerSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Fri, 25 Nov 2022 18:17:58 +0000 (13:17 -0500)
Main/__pycache__/game.cpython-310.pyc
Main/__pycache__/setup.cpython-310.pyc
Main/assets/colour_palette.pdf [moved from Main/colour_palette.pdf with 100% similarity]
Main/assets/logo.png [new file with mode: 0644]
Main/background.py [new file with mode: 0644]
Main/game.py
Main/main.py
Main/setup.py

index e54377ff2c48516249daf751a53804677453c9aa..8274f661699d71b86769b7a8f1c1eca85847dfaf 100644 (file)
Binary files a/Main/__pycache__/game.cpython-310.pyc and b/Main/__pycache__/game.cpython-310.pyc differ
index 800458e329af3a0f5b2059fd6a639f2453d9dd37..524abc3af29794362089951fb6332221300a6685 100644 (file)
Binary files a/Main/__pycache__/setup.cpython-310.pyc and b/Main/__pycache__/setup.cpython-310.pyc differ
diff --git a/Main/assets/logo.png b/Main/assets/logo.png
new file mode 100644 (file)
index 0000000..851a8ca
Binary files /dev/null and b/Main/assets/logo.png differ
diff --git a/Main/background.py b/Main/background.py
new file mode 100644 (file)
index 0000000..a823a90
--- /dev/null
@@ -0,0 +1,17 @@
+import pygame
+
+from setup import *
+
+
+class Background:
+    background = pygame.Surface(dimensions)
+    
+
+    def __init__(self):
+        pass
+
+    def update(self, delta):
+        pass
+
+    def draw(self, surf):
+        pass
\ No newline at end of file
index c71c26f1124452a987ca7893cecc3c45e13364f1..d1454d590e33efb2d1b9a2c860d751755fa6a931 100644 (file)
@@ -49,7 +49,7 @@ class Game:
         self.word_connector = WordConnector()
         self.bg_colour = Colour.LIGHT_GRAY
         self.unknown_word_display = UnknownWordDisplay((SCREEN_WIDTH*2/3-UnknownWordDisplay.inset,self.board.position.y),self.word_frequency)
-        self.timer = Timer(self.unknown_word_display.position +pygame.Vector2(0,self.unknown_word_display.get_rect().height))
+        self.timer = Timer(self.unknown_word_display.position +pygame.Vector2(0,self.unknown_word_display.get_rect().height-self.unknown_word_display.inset + self.word_disp_separation_distance/2))
     def update(self, delta):
         self.word += self.board.update(delta, self.bg_colour, self.points)
         self.word_connector.update(self.board.grid.last_selected, self.colour_converter[self.bg_colour])
index a3eac6864ce8db7b8e9faa02337b2652c3265034..a41195d91efc08c2a8ed2ff50ce3f4e431c9c0fb 100644 (file)
@@ -1,7 +1,7 @@
 from setup import *
 from game import Game
 
-puzzle = f"puzzles/PuzzlePack{4}/puzzle{12}.txt"
+puzzle = f"puzzles/PuzzlePack{4}/puzzle{13}.txt"
 print(puzzle)
 scene = Game(puzzle)
 
index 6f7e4e10b35e41e7cf0dd453b4b0b0f60a3fb4e7..4d782e58157374d2540413c5ba7c1e65368eee10 100644 (file)
@@ -16,6 +16,7 @@ center = pygame.Vector2(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2)
 screen = pygame.display.set_mode(dimensions)
 
 pygame.display.set_caption("Word Hunt")
+pygame.display.set_icon(pygame.image.load("assets/logo.png"))
 clock = pygame.time.Clock()
 fps = 60