17 lines
294 B
Lua
17 lines
294 B
Lua
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
|
|
} |