problem with game views (starts on page 2)
Posted: Sun Sep 08, 2013 8:26 pm
Im Having a problem with my save database.
it saves everything exept the money variable ... i am thankfull for any help
Code: Select all
--save data
gamefile = love.filesystem.isDirectory ('CriminalData' )
if gamefile then
else love.filesystem.mkdir( 'CriminalData' )
end
tempsavedata = {
roomnum = 1,
lightnum = 1,
tablenum = 1,
monitornum = 1,
casenum = 1,
player = 1,
money = 250
}
lastsave = 0
savetimer = 0
view = 1
displaytitle = true
if love.filesystem.isFile('save.txt') then
loadSave()
else
initialsave()
loadSave()
end