- Comence a implementar els moduls 'game' i 'actors'
This commit is contained in:
17
data/actors.lua
Normal file
17
data/actors.lua
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user