aboutsummaryrefslogtreecommitdiff
path: root/src/objs/player.lua
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-11 22:36:18 -0400
committeriamcheeseman <[email protected]>2026-03-11 22:36:18 -0400
commitc63b1e049c9da2c095281b3e5dd012cc4fc4b6fc (patch)
treecf924ca9cc9dc12e97e5ee1250930930a248bcdf /src/objs/player.lua
parent9e1afa5a96849aeb8eafce786c2411af7f45508c (diff)
Add loading for aseprite files; animated sprites
Diffstat (limited to 'src/objs/player.lua')
-rw-r--r--src/objs/player.lua5
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