Files
jailsadventure2/data/objects.lua
Raimon Zamora d48816bd8b - Retreballant el sistema de objectes
- Treballant en el fluxe de programa
- Treballant en el guardat/carrega de partida
- Fades encadenats
2023-02-01 19:14:26 +01:00

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}
}