Love:Mike: Timer now saves/loads

This commit is contained in:
2017-08-10 10:16:18 -07:00
parent 263c8fa952
commit e5ef06f61a
2 changed files with 6 additions and 4 deletions

View File

@@ -25,6 +25,8 @@ function love.keyreleased(key)
if save_exists then
--player = Tserial.unpack( love.filesystem.read( saveFile ) )
actors = GameState.load(SAVE_FILE)
-- Tell the timer to ignore time passed between the save and the load
actors.start = love.timer.getTime() - actors.end_timer
end
end
end