Added update function to not have to call Object.rotate_sprites() and Object.generate_surface().
This commit is contained in:
parent
a58865eba8
commit
5c5ed49a9b
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ class Object:
|
|||
|
||||
return surface
|
||||
|
||||
def update(self):
|
||||
return self.rotate_sprites(), self.generate_surface()
|
||||
|
||||
|
||||
def get_dir(path: str):
|
||||
return path.rsplit("/", 1)[0]
|
||||
|
|
Loading…
Reference in a new issue