fixed launching issue caused by incorrect resource reference

This commit is contained in:
Nicholas Dyer 2023-05-11 18:00:25 -04:00
parent 327f6cadee
commit 509efa7e23

View File

@ -21,7 +21,7 @@ game_fps = 16
game_res = 80
script_dir = os.path.dirname(os.path.abspath(__file__))
save_dir = os.path.join(Path.home(), '.pocket_friends')
resources_dir = script_dir + '/surfaces/resources'
resources_dir = script_dir + '/resources'
starting_surface = 'title'
@ -44,7 +44,7 @@ def game():
surface = surface_modules.get(starting_surface).Surface((game_res, game_res), resources_dir, game_fps)
# Add an icon to the pygame window.
icon = pygame.image.load(script_dir + '/icon/icon.png').convert_alpha()
icon = pygame.image.load(resources_dir + '/icon/icon.png').convert_alpha()
pygame.display.set_icon(icon)
# Default game state when the game first starts.