Skip to content

Commit

Permalink
fixed some small issues (#62)
Browse files Browse the repository at this point in the history
* Fixed unit tests

Unit tests weren't working after revamp merge, but it's fixed now

* Added more log statements and fixed visualzer runner bug also enabled multithreading properly

* fixed issues with linux scripts and added a db_viewer python script for simple db viewing in the console

* updated requirements

* changed team_name to file_name

* fixed font and spot on ores

---------

Co-authored-by: KingPhilip14 <kingian404@gmail.com>
  • Loading branch information
JeanAEckelberg and KingPhilip14 authored Jan 9, 2024
1 parent 91d5068 commit 8541557
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion visualizer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Config:
__GAME_BOARD_MARGIN_LEFT: int = 459
__GAME_BOARD_MARGIN_TOP: int = 100
__VISUALIZE_HELD_ITEMS: bool = False
__FONT: str = os.path.join(os.getcwd(), r'visualizer\templates\zrnic rg.otf')
__FONT: str = os.path.join(os.getcwd(), 'visualizer', 'templates', 'zrnic rg.otf')
__TEXT_COLOR: str = '#A26D3F'
__BUTTON_COLORS: ButtonColors = ButtonColors(
bg_color='#A26D3F',
Expand Down
Binary file modified visualizer/spritesheets/OreSS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions visualizer/utils/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, screen: pygame.Surface, text: str, font_size: int, font_name:
try:
self.__font: pygame.font.Font = pygame.font.Font(self.font_name, self.font_size)
except FileNotFoundError:
print("Font not found")
self.__font: pygame.font.Font = pygame.font.SysFont(self.font_name, self.font_size)
self.color: Color = color
self.position: Vector = position
Expand Down

0 comments on commit 8541557

Please sign in to comment.