]> Skullheadx's Git Forge - word-hunt.git/commitdiff
small adjustments
authorSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Thu, 24 Nov 2022 00:16:12 +0000 (19:16 -0500)
committerSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Thu, 24 Nov 2022 00:16:12 +0000 (19:16 -0500)
Main/__pycache__/board.cpython-310.pyc
Main/__pycache__/game.cpython-310.pyc
Main/__pycache__/tile.cpython-310.pyc
Main/__pycache__/word_connector.cpython-310.pyc [moved from Main/__pycache__/effects.cpython-310.pyc with 61% similarity]
Main/board.py
Main/game.py
Main/main.py
Main/tile.py
Main/word_connector.py [moved from Main/effects.py with 99% similarity]

index 66e22b6db405d927f5ed1921c9df9f2bbd5c3cff..8f37252d064ad83dc1306458531ecbebef240ac0 100644 (file)
Binary files a/Main/__pycache__/board.cpython-310.pyc and b/Main/__pycache__/board.cpython-310.pyc differ
index e5e35fe1aca44bb307a817afcd67d6ef00bd5415..e1d42ecda27c91cf132299bd4ede3f6058475007 100644 (file)
Binary files a/Main/__pycache__/game.cpython-310.pyc and b/Main/__pycache__/game.cpython-310.pyc differ
index 4524937525081e782100adf2b4caeaae06919073..590779ff1db69cd5ada86530996312de18c9fb88 100644 (file)
Binary files a/Main/__pycache__/tile.cpython-310.pyc and b/Main/__pycache__/tile.cpython-310.pyc differ
similarity index 61%
rename from Main/__pycache__/effects.cpython-310.pyc
rename to Main/__pycache__/word_connector.cpython-310.pyc
index a2370f37780e93b1ff30040cf2b0da602495cd95..4d258cd58aa32ffcfa0bff51e65c819f64fe547d 100644 (file)
Binary files a/Main/__pycache__/effects.cpython-310.pyc and b/Main/__pycache__/word_connector.cpython-310.pyc differ
index c8578d4cf27124e80d8bdfaebbac82c58cdc03e3..b6dad49dbe12eab86318973da0a813ca8626ba2c 100644 (file)
@@ -48,7 +48,7 @@ class Grid:
 class Board:
     text_font = pygame.font.Font("font/Silkscreen-Regular.ttf", 20)
 
-    inset = 15
+    inset = 20
     edge_radius = 25
     border_width = 8
 
@@ -87,7 +87,7 @@ class Board:
         self.grid.draw(surf)
 
         surf.blit(self.points_display, self.points_display.get_rect(
-            bottomleft=self.grid.position + pygame.Vector2(0, -Tile.separation_distance)))
+            bottomleft=self.grid.position + pygame.Vector2(0, -0.5 * ( self.inset))))
 
         # print(self.position+pygame.Vector2(2 * Tile.side_length + Tile.separation_distance * 3/ 2), center)
         #
index a048a2b89d627e1c64173544a525d65810c2719a..3eca2f20abc886203d593873ac7f8bfcc326e12d 100644 (file)
@@ -1,9 +1,7 @@
-import pygame.draw
-
 from setup import *
 from tile import Tile
 from board import Board
-from effects import WordConnector
+from word_connector import WordConnector
 
 
 class Game:
@@ -34,7 +32,7 @@ class Game:
         self.seen = set()
         self.points = 0
         self.title = self.title_font.render("Word Hunt", True, Colour.BLACK)
-        self.board = Board(pygame.Vector2(SCREEN_WIDTH / 3, SCREEN_HEIGHT / 2), length, width, self.letters)
+        self.board = Board(pygame.Vector2(SCREEN_WIDTH / 2, SCREEN_HEIGHT *3/5), length, width, self.letters)
 
         self.word = ""
         self.word_display = self.font.render(self.word, True, Colour.BLACK, Colour.LIGHT_GRAY)
index f431dff0b2ebc8e782a8733099a7a9e8c971ccdd..ba48ecbd53285494d04f076b0e850acfe1bf6dc4 100644 (file)
@@ -1,7 +1,7 @@
 from setup import *
 from game import Game
 
-puzzle = f"puzzles/PuzzlePack{4}/puzzle{3}.txt"
+puzzle = f"puzzles/PuzzlePack{4}/puzzle{4}.txt"
 print(puzzle)
 scene = Game(puzzle)
 
index e65568d14ef0f1dfeffc9a9493c1ef6152da7129..6a61090539c3ecdf343b21fe0992aadb9dd2ed63 100644 (file)
@@ -3,11 +3,11 @@ import pygame.mouse
 from setup import *
 
 class Tile:
-    side_length = 80
+    side_length = 85
     bezel = 5
     cutoff = 8
     edge_radius = 15
-    separation_distance = 7.5
+    separation_distance = 10
 
     font = pygame.font.Font("font/Silkscreen-Regular.ttf", 40)
 
similarity index 99%
rename from Main/effects.py
rename to Main/word_connector.py
index 96a37f9f6c258675f3ff6fdceb2fc61d673ebcc0..678fe5fda674a743f21027fb03a2c295c76f59a7 100644 (file)
@@ -1,5 +1,3 @@
-import pygame
-
 from setup import *
 from tile import Tile