AI-Project/survival/components/sprite_component.py

10 lines
190 B
Python
Raw Permalink Normal View History

2021-03-28 18:05:52 +02:00
from survival.image import Image
class SpriteComponent:
def __init__(self, path):
self.image = Image(path)
def set_scale(self, scale):
self.image.set_scale(scale)