Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function highScore.save()
- local path = system.pathForFile( M.filename, system.DocumentsDirectory )
- local file = io.open(path, "w")
- local contents = tostring( highScore )
- file:write( contents )
- io.close( file )
- return true
Advertisement
Add Comment
Please, Sign In to add comment