From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Thu, 24 Nov 2022 00:16:12 +0000 (-0500) Subject: small adjustments X-Git-Url: http://git.skullheadx.com/sitemap.xml?a=commitdiff_plain;h=90dafbd0d5dea575d54ccd35afcf1ed79a691fa9;p=word-hunt.git small adjustments --- diff --git a/Main/__pycache__/board.cpython-310.pyc b/Main/__pycache__/board.cpython-310.pyc index 66e22b6..8f37252 100644 Binary files a/Main/__pycache__/board.cpython-310.pyc and b/Main/__pycache__/board.cpython-310.pyc differ diff --git a/Main/__pycache__/game.cpython-310.pyc b/Main/__pycache__/game.cpython-310.pyc index e5e35fe..e1d42ec 100644 Binary files a/Main/__pycache__/game.cpython-310.pyc and b/Main/__pycache__/game.cpython-310.pyc differ diff --git a/Main/__pycache__/tile.cpython-310.pyc b/Main/__pycache__/tile.cpython-310.pyc index 4524937..590779f 100644 Binary files a/Main/__pycache__/tile.cpython-310.pyc and b/Main/__pycache__/tile.cpython-310.pyc differ diff --git a/Main/__pycache__/effects.cpython-310.pyc b/Main/__pycache__/word_connector.cpython-310.pyc similarity index 61% rename from Main/__pycache__/effects.cpython-310.pyc rename to Main/__pycache__/word_connector.cpython-310.pyc index a2370f3..4d258cd 100644 Binary files a/Main/__pycache__/effects.cpython-310.pyc and b/Main/__pycache__/word_connector.cpython-310.pyc differ diff --git a/Main/board.py b/Main/board.py index c8578d4..b6dad49 100644 --- a/Main/board.py +++ b/Main/board.py @@ -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) # diff --git a/Main/game.py b/Main/game.py index a048a2b..3eca2f2 100644 --- a/Main/game.py +++ b/Main/game.py @@ -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) diff --git a/Main/main.py b/Main/main.py index f431dff..ba48ecb 100644 --- a/Main/main.py +++ b/Main/main.py @@ -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) diff --git a/Main/tile.py b/Main/tile.py index e65568d..6a61090 100644 --- a/Main/tile.py +++ b/Main/tile.py @@ -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) diff --git a/Main/effects.py b/Main/word_connector.py similarity index 99% rename from Main/effects.py rename to Main/word_connector.py index 96a37f9..678fe5f 100644 --- a/Main/effects.py +++ b/Main/word_connector.py @@ -1,5 +1,3 @@ -import pygame - from setup import * from tile import Tile