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.
-
zugende
- Prole
- Posts: 12
- Joined: Sun Feb 21, 2016 5:47 pm
Post
by zugende »
Hi everybody,
I would like to use sick for saving highscores. But no matter what I do, nothing is written in the dedicated highscore file. What am I doing wrong?
My setup:
Within my game folder I included the "highscore.txt" file.
This is the code:
Code: Select all
local highscore = require('sick')
highscore.set("highscore.txt",2)
highscore.add("test1", 235)
highscore.add("Test test", 33456)
highscore.save()
My game folder is called "game" so I set in the config.lua
Is this wrong?
Thakns a lot!!
Best
Basti
-
Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
-
Contact:
Post
by Robin »
Did you look in the write directory? (See the
wiki for where to find it.)
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 12 guests