Hi,
I try to organize my project into serveral sub-folders, which is following the document from Corona as this link :
http://coronalabs.com/blog/2012/07/10/best-practices-for-organizing-projects/
I can put util.lua in to /scripts/util.lua, and I can call those functions by this code
local util = require( “scripts.util” )
or
local shadow = display.newImageRect( “images/shadow.png”,2,16 )
there is no problem for general purpose, such as load image, return a computed value from sub-folder script,
But if there are some display object in util.lua, how do I handle the event in main.lua but display objects and events from util.lua ?
Thanks