diff options
| author | iamcheeseman <[email protected]> | 2026-03-12 18:28:55 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-12 18:28:55 -0400 |
| commit | 05976abe6a620da85ad7a9f90cfa99703ed32240 (patch) | |
| tree | e4dbd50cde59553502da146f84701a83ce649da0 /src/objs/player.lua | |
| parent | f5d00397e02fde75e3c63e9872ac5625bd961794 (diff) | |
Sprite offset
Diffstat (limited to 'src/objs/player.lua')
| -rw-r--r-- | src/objs/player.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/objs/player.lua b/src/objs/player.lua index 1e41523..58e5f3a 100644 --- a/src/objs/player.lua +++ b/src/objs/player.lua @@ -30,7 +30,10 @@ function new_player(x, y) mask = {"hard"}, }) add_comp(ent, "Player") - add_comp(ent, "Sprite", "res/img/player.ase") + add_comp(ent, "Sprite", "res/img/player.ase", { + offsetx = 0.5, + offsety = 0.5, + }) return ent end |
