Compare commits
1 Commits
oop-cleanu
...
aa7bcccada
Author | SHA1 | Date | |
---|---|---|---|
aa7bcccada |
@@ -13,13 +13,17 @@ if __name__ == '__main__':
|
||||
|
||||
# enable dev mode if --dev argument is passed
|
||||
if len(sys.argv) > 0:
|
||||
for arg in sys.argv:
|
||||
match arg:
|
||||
case '--delete-save':
|
||||
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
||||
os.remove(save_dir + '/save.json')
|
||||
for args in sys.argv:
|
||||
if args == '--dev':
|
||||
enable_dev = True
|
||||
if args == '--delete-save':
|
||||
save_dir = os.path.join(Path.home(), '.pocket_friends')
|
||||
os.remove(save_dir + '/save.json')
|
||||
|
||||
game_main()
|
||||
if not enable_dev:
|
||||
game_main()
|
||||
else:
|
||||
dev_menu_main()
|
||||
|
||||
pygame.quit()
|
||||
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
|
||||
# screen_size to reflect what the resolution of the new display is.
|
||||
screen_size = 320
|
||||
screen_size = 240
|
||||
|
||||
window = pygame.display.set_mode((screen_size, screen_size))
|
||||
surface = pygame.Surface((game_res, game_res))
|
||||
|
Reference in New Issue
Block a user