- Treballant en el fluxe de programa - Treballant en el guardat/carrega de partida - Fades encadenats
29 lines
656 B
Lua
29 lines
656 B
Lua
objects={
|
|
list={},
|
|
|
|
collect=function(obj)
|
|
table.insert(objects.list, obj)
|
|
balloon.narrator(object[obj])
|
|
end,
|
|
|
|
leave=function(name)
|
|
for i,obj in ipairs(objects.list) do
|
|
if object[obj].name and object[obj].name==name then
|
|
table.remove(objects.list,i)
|
|
return
|
|
end
|
|
end
|
|
end,
|
|
|
|
search=function(name)
|
|
for i,obj in ipairs(objects.list) do
|
|
if object[obj].name and object[obj].name==name then
|
|
return object[obj]
|
|
end
|
|
end
|
|
end
|
|
}
|
|
|
|
object={
|
|
diskito_usufondo={name="DISQUITO DE USUFONDO",x=0,y=0}
|
|
} |