diff --git a/pocket_friends/__main__.py b/pocket_friends/__main__.py index 7347b8a..c742d8a 100644 --- a/pocket_friends/__main__.py +++ b/pocket_friends/__main__.py @@ -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() diff --git a/pocket_friends/game.py b/pocket_friends/game.py index fc38328..f4019ca 100644 --- a/pocket_friends/game.py +++ b/pocket_friends/game.py @@ -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() diff --git a/pocket_friends/surfaces/__init__.py b/pocket_friends/surfaces/__init__.py deleted file mode 100644 index e69de29..0000000