Page 1 of 1

Saving a highscore on Android?

Posted: Sat Sep 26, 2015 6:38 pm
by IxonOxide
Im making a small game for android and i need to save a highscore. How would i go about doing this?

Re: Saving a highscore on Android?

Posted: Sat Sep 26, 2015 8:10 pm
by bobbyjones
You can use love.filesystem to load and save files. Also you can use a serialization lib like tserial to turn tables into strings. That way you can have an array of high scores. But that is for local high score list only. You could also just send the score and a name to a server where the server can store it. For that you can use luasocket.