I am using Rob Miracle's loadsave module for my Corona SDK game
I have this little Enquiry on it
If I save a json table on mydata.lua
M={}
M.highScore = 0
M.levels=1
loadsave.saveTable(M,"settings.json")
return M
Now if in the game.lua...I do this....
function gameOver
If gamewin == false then
mydata.level = mydata.level + 1
gamewin = true
loadsave.saveTable(mydata,"settings.json")
end
Now if I do this will the loadsave module overwrite the whole json file and hence remove the high score parameter from there?
Please help