This commit is contained in:
feroult
2017-11-14 15:39:25 -02:00
parent 266e85ce7c
commit e0e07f368b
2 changed files with 5 additions and 1 deletions

4
TODO.md Normal file
View File

@ -0,0 +1,4 @@
TODO:
* Rotation around sprint center

View File

@ -54,7 +54,7 @@ abstract class SpriteComponent extends PositionComponent {
final Size imageSize = new Size(
image.width.toDouble(), image.height.toDouble());
final FittedSizes sizes = applyBoxFit(
BoxFit.fill, imageSize, outputRect.size);
BoxFit.cover, imageSize, outputRect.size);
final Rect inputSubrect = Alignment.center.inscribe(
sizes.source, Offset.zero & imageSize);
final Rect outputSubrect = Alignment.center.inscribe(