These are just a few functions for making simple, text-based highscore tables. Since I couldn't find any other ones. And yes I tested them.
Download:
http://tesselode.110mb.com/love_highscore_functions.zip
BASIC USAGE:
First of all, always remember to use love.filesystem.setIdentity().
You'll also need to execute the following code somewhere before you use this:
Code: Select all
require "path/to/highscore.lua"
Then you can start calling functions:
Code: Select all
highscore_new(filename, places, name, score)
Code: Select all
highscore_load(filename)
Code: Select all
highscore_write(filename)
Code: Select all
highscore_add(score, name)
Well that's it; 4 functions. Hopefully you will be able to make good use of this. If you find any way to improve this or find any bugs, go ahead and tell me.