Commit 39cac831 authored by zacryol's avatar zacryol

Fixed file path

parent 975a9440
......@@ -122,7 +122,7 @@ function endGame()
high_score = math.max(high_score, current_score)
print("Score this run: ", current_score)
print("Best this session: ", high_score)
f = io.open("score.txt", "w")
f = io.open(love.filesystem.getSourceBaseDirectory() .. "/score.txt", "w")
f:write("Score this run: " .. current_score .. "\r\n")
f:write("Best this session: " .. high_score .. "\r\n")
f:close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment