removed redundant starting function
This commit is contained in:
parent
06755ee937
commit
6a0201da85
@ -20,7 +20,7 @@ if __name__ == '__main__':
|
||||
if '--res=' in arg:
|
||||
resolution = int(arg.split('=')[1])
|
||||
|
||||
game.main(resolution)
|
||||
game.start_game(resolution)
|
||||
|
||||
pygame.quit()
|
||||
sys.exit()
|
||||
|
@ -30,7 +30,7 @@ resources_dir = script_dir + '/resources'
|
||||
os.environ['SDL_FBDEV'] = '/dev/fb1'
|
||||
|
||||
|
||||
def game(resolution=240):
|
||||
def start_game(resolution=240):
|
||||
"""
|
||||
Starts the game.
|
||||
|
||||
@ -71,14 +71,4 @@ def game(resolution=240):
|
||||
game_fps, **additional_args)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user