removed redundant starting function

This commit is contained in:
Nicholas Dyer 2023-05-14 17:10:34 -04:00
parent 06755ee937
commit 6a0201da85
3 changed files with 2 additions and 12 deletions

View File

@ -20,7 +20,7 @@ if __name__ == '__main__':
if '--res=' in arg: if '--res=' in arg:
resolution = int(arg.split('=')[1]) resolution = int(arg.split('=')[1])
game.main(resolution) game.start_game(resolution)
pygame.quit() pygame.quit()
sys.exit() sys.exit()

View File

@ -30,7 +30,7 @@ resources_dir = script_dir + '/resources'
os.environ['SDL_FBDEV'] = '/dev/fb1' os.environ['SDL_FBDEV'] = '/dev/fb1'
def game(resolution=240): def start_game(resolution=240):
""" """
Starts the game. Starts the game.
@ -71,14 +71,4 @@ def game(resolution=240):
game_fps, **additional_args) game_fps, **additional_args)
pygame.display.flip() pygame.display.flip()
def main(resolution=240):
"""
Calls the game() function to start the game.
Args:
resolution (int, optional): Resolution to display the game at. Defaults to 240.
"""
game(resolution)
pygame.quit() pygame.quit()