Saving a highscore on Android?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
IxonOxide
Prole
Posts: 3
Joined: Mon Aug 17, 2015 12:03 pm

Saving a highscore on Android?

Post by IxonOxide »

Im making a small game for android and i need to save a highscore. How would i go about doing this?
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: Saving a highscore on Android?

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest