I want to define some global vars and help function, whice is better:
1.global.lua
_G["_W"] = display.contentWidth
_G["_H"] = display.contentHeight
_G[“myHelperFunc”] = function()
return “aa”
end
2.global.lua
_W = display.contentWidth
_H = display.contentHeight
function myHelperFunc()
return “aa”
end
[import]uid: 11702 topic_id: 26572 reply_id: 326572[/import]