Utilize Vector2 for sprite and set default position

This commit is contained in:
Lukas Klingsbo
2020-10-12 21:15:03 +02:00
parent d2e16940aa
commit 2976362997
6 changed files with 33 additions and 32 deletions

View File

@ -36,8 +36,7 @@ class SpriteComponent extends PositionComponent {
super.render(canvas);
sprite.render(
canvas,
width: width,
height: height,
size: size,
overridePaint: overridePaint,
);
}