I believe I found a solution, let me know if this is proper Coronaese/Coronese:
First, within linedraw.lua, I create a display group (to hold all objects for linedraw.lua) and attach it to the LD table:
--linedraw.lua--
local LD = {}
...
local function startListener()
print("starting listener...")
Runtime:addEventListener("touch", drawDots)
---Create display group:
LD.linedrawgroup = display.newGroup()
end
...
return LD
Then…
I pull said group into my level1.lua and localize it, like so! :
--level1.lua
--Import display group from linedraw.lua and localize:
local LDgroup = LD.linedrawgroup
Bonus:
…and then all I have to do for easy clean up, is put said group into a master group within level1.lua!
[import]uid: 73951 topic_id: 35817 reply_id: 144930[/import]