- Comence a implementar els moduls 'game' i 'actors'

This commit is contained in:
2023-01-30 14:57:41 +01:00
parent adee527d70
commit b916fb39ee
4 changed files with 33 additions and 2 deletions

17
data/actors.lua Normal file
View File

@@ -0,0 +1,17 @@
actors={
list={},
add=function(actor)
table.insert(actors.list, actor)
end,
draw=function()
for i,v in ipairs(actors.list) do
sspr(v.gfx.x,v.gfx.y,16,16,v.x*8+v.dx,v.y*8+v.dy,16,16,v.o)
end
end,
update=function()
end
}