(실제 elements 수보다 하나 더 많이 enumerate 되곤 함)
sprites_aniLoopBnF_breakable = {
{["filename"]="enemyFlyGreen", ["w"]=42, ["h"]=58, ["numFrames"]=3, ["durationTime"]=2400},
{["filename"]="enemyFlyBlue", ["w"]=42, ["h"]=58, ["numFrames"]=3, ["durationTime"]=2400},
{["filename"]="df", ["w"]=100, ["h"]=106, ["numFrames"]=3, ["durationTime"]=2400}
}
function loadData(displayType)
for k, v in ipairs(sprites_aniLoopBnF_breakable) do
print(count .. ")", v.filename, v.w, v.h)
...
end
end
No comments:
Post a Comment