SaveLove - A simple highscore library for love2D

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
NickRock
Citizen
Posts: 76
Joined: Thu Dec 25, 2014 9:33 pm
Location: Earth
Contact:

SaveLove - A simple highscore library for love2D

Post by NickRock »

I made this library because I was struggling with saving highscores, it was made for personal use but why not share it with everyone anyways

Source Code:
https://github.com/NickRock/SaveLove

How It Works:

Code: Select all

savelove = require "path/to/savelove"

-- Setting the highscore for an object
object = {}
object.highscore = 0
object.highscore = savelove:set("file name", object.highscore)

--Save the file
savelove:save("filename", object.highscore)
I haven't had the chance to work on it more and make it less messy but feel free to fork it on github and play around with it!

I re-posted this here because I accidentally posted this topic to the wrong subforum
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 231 guests