Compare commits
1 Commits
aa7bcccada
...
oop-cleanu
Author | SHA1 | Date | |
---|---|---|---|
e5584bd439 |
@@ -13,17 +13,13 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
# enable dev mode if --dev argument is passed
|
# enable dev mode if --dev argument is passed
|
||||||
if len(sys.argv) > 0:
|
if len(sys.argv) > 0:
|
||||||
for args in sys.argv:
|
for arg in sys.argv:
|
||||||
if args == '--dev':
|
match arg:
|
||||||
enable_dev = True
|
case '--delete-save':
|
||||||
if args == '--delete-save':
|
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
||||||
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
os.remove(save_dir + '/save.json')
|
||||||
os.remove(save_dir + '/save.json')
|
|
||||||
|
|
||||||
if not enable_dev:
|
game_main()
|
||||||
game_main()
|
|
||||||
else:
|
|
||||||
dev_menu_main()
|
|
||||||
|
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
@@ -545,7 +545,7 @@ def game():
|
|||||||
|
|
||||||
# The game is normally rendered at 80 pixels and upscaled from there. If changing displays, change the
|
# The game is normally rendered at 80 pixels and upscaled from there. If changing displays, change the
|
||||||
# screen_size to reflect what the resolution of the new display is.
|
# screen_size to reflect what the resolution of the new display is.
|
||||||
screen_size = 240
|
screen_size = 320
|
||||||
|
|
||||||
window = pygame.display.set_mode((screen_size, screen_size))
|
window = pygame.display.set_mode((screen_size, screen_size))
|
||||||
surface = pygame.Surface((game_res, game_res))
|
surface = pygame.Surface((game_res, game_res))
|
||||||
|
Reference in New Issue
Block a user