Changement de la manière de charcher les textures #27
|
@ -304,7 +304,7 @@ class Assets:
|
|||
La texture qui correspond au nom *name*.
|
||||
"""
|
||||
if name.startswith("animations/"):
|
||||
return pygame.image.load(name)
|
||||
return pygame.image.load(f"assets/textures/{name}")
|
||||
return self.__textures.get(name, self.__error_texture)
|
||||
|
||||
def get_texture_size(self, name: str) -> Vec2:
|
||||
|
|
Loading…
Reference in a new issue