diff options
| author | iamcheeseman <[email protected]> | 2026-03-11 22:36:18 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-11 22:36:18 -0400 |
| commit | c63b1e049c9da2c095281b3e5dd012cc4fc4b6fc (patch) | |
| tree | cf924ca9cc9dc12e97e5ee1250930930a248bcdf /src/objs | |
| parent | 9e1afa5a96849aeb8eafce786c2411af7f45508c (diff) | |
Add loading for aseprite files; animated sprites
Diffstat (limited to 'src/objs')
| -rw-r--r-- | src/objs/player.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/objs/player.lua b/src/objs/player.lua index 83b05fe..74d28e8 100644 --- a/src/objs/player.lua +++ b/src/objs/player.lua @@ -14,10 +14,6 @@ function body_sys(ent, dt) ent.y = ent.box.y end -function draw_sys(ent) - love.graphics.circle("fill", ent.x, ent.y, 8) -end - function player_movement_sys(player, dt) local inpx, inpy = input_direction("Left", "Right", "Up", "Down") inpx, inpy = normalize(inpx, inpy) @@ -34,4 +30,5 @@ function new_player(x, y) mask = {"hard"}, }) add_comp(ent, "Player") + add_comp(ent, "Sprite", "res/img/player.ase") end |
