GGTweak allows you to store data in JSON format on a remote web server to be used in your Corona SDK apps. This allows you to tweak the values whenever you want. Very useful during development. Could be used to store values for balancing in live games as well.
local GGTweak = require( "GGTweak" )
local tweak = GGTweak:new( "http://localhost/data.json", onRefresh, 1000 )
print( tweak:get( "testValue" ) )
local onRefresh = function() print( tweak:get( "testValue" ) ) end
Create a library and load data locally. Useful when you already have confirmed your values for live apps.
local tweak = GGTweak:new( nil, onRefresh ) tweak:loadLocalData( "localData.json" )
tweak:destroy() tweak = nil