sick.lua - what is the right path to file?
Posted: Sun Apr 17, 2016 2:43 pm
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:
My game folder is called "game" so I set in the config.lua
Is this wrong?
Thakns a lot!!
Best
Basti
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()
Code: Select all
t.identity = "game"
Thakns a lot!!
Best
Basti