Topic: How to save user data (e.g. progress/option)?
I cann't find lua-function to work with player data. Are they exists?
Surely this data may be stored as lua-script
// pseudo-code
function SaveData()
file = io.open("player_data.lua", "w+")
file:write("player_data_vars={}")
for key,value in pairs(player_data_vars) do
file:write("player_data_vars[<<key>>]=<<value>>")
end
file:flush()
file:close()
end
function LoadData()
dofile("player_data_vars.lua")
end
But this code create stand-alone lua-file with platform-depends place (in Windows7 used exe-same folder).
Perhaps, I wrong and place not depended.
Wait yours remarks