diff options
| author | iamcheeseman <[email protected]> | 2026-03-12 18:30:51 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-12 18:30:51 -0400 |
| commit | 1943aa1b865a36cb88564573cdcca71ac3554504 (patch) | |
| tree | 87bcb9c3fe10a718761736e2cf43f28e7975c702 /src | |
| parent | 05976abe6a620da85ad7a9f90cfa99703ed32240 (diff) | |
Use rotation scale and shear components for sprite rendering
Diffstat (limited to 'src')
| -rw-r--r-- | src/sprite.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sprite.lua b/src/sprite.lua index 6cd8ede..49a7dd2 100644 --- a/src/sprite.lua +++ b/src/sprite.lua @@ -68,7 +68,9 @@ function sprite_draw_sys(ent) lg.draw( sprite.tex, q, ent.x or 0, ent.y or 0, - 0, 1, 1, - sprite.offsetx, sprite.offsety + ent.rotation or 0, + ent.scalex or ent.scale or 1, ent.scaley or ent.scale or 1, + sprite.offsetx, sprite.offsety, + ent.shearx or 0, ent.sheary or 0 ) end |
