fixed launching issue caused by incorrect resource reference
This commit is contained in:
parent
327f6cadee
commit
509efa7e23
@ -21,7 +21,7 @@ game_fps = 16
|
|||||||
game_res = 80
|
game_res = 80
|
||||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
||||||
resources_dir = script_dir + '/surfaces/resources'
|
resources_dir = script_dir + '/resources'
|
||||||
starting_surface = 'title'
|
starting_surface = 'title'
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ def game():
|
|||||||
surface = surface_modules.get(starting_surface).Surface((game_res, game_res), resources_dir, game_fps)
|
surface = surface_modules.get(starting_surface).Surface((game_res, game_res), resources_dir, game_fps)
|
||||||
|
|
||||||
# Add an icon to the pygame window.
|
# 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)
|
pygame.display.set_icon(icon)
|
||||||
|
|
||||||
# Default game state when the game first starts.
|
# Default game state when the game first starts.
|
||||||
|
Loading…
Reference in New Issue
Block a user