Love:Mike: Timer now saves/loads
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user