Added update function to not have to call Object.rotate_sprites() and Object.generate_surface().

This commit is contained in:
The Wobbler 2024-04-18 18:30:13 +02:00
parent a58865eba8
commit 5c5ed49a9b

View file

@ -58,6 +58,9 @@ class Object:
return surface return surface
def update(self):
return self.rotate_sprites(), self.generate_surface()
def get_dir(path: str): def get_dir(path: str):
return path.rsplit("/", 1)[0] return path.rsplit("/", 1)[0]