AI-Project/survival/components/sprite_component.py
2021-06-19 00:09:14 +02:00

10 lines
195 B
Python

from survival.game.image import Image
class SpriteComponent:
def __init__(self, path):
self.image = Image(path)
def set_scale(self, scale):
self.image.set_scale(scale)