Image scale/rotation works

This commit is contained in:
Maddy Thorson
2021-02-08 22:43:25 -08:00
parent 9f1f04358b
commit 6e1c8c7558
2 changed files with 11 additions and 7 deletions

View File

@ -15,12 +15,12 @@ namespace Strawberry
Offset = offset;
}
public Point DrawPosition => Entity.Position + Offset - Origin;
public Point DrawPosition => Entity.Position + Offset;
public void Draw()
{
if (Texture != null)
Game.Batcher.Tex(Texture, DrawPosition);
Game.Batcher.Tex(Texture, DrawPosition, Origin, Scale, Rotation);
}
}
}