licensing / logging
This commit is contained in:
@@ -5,6 +5,7 @@ RGB uses the following libraries:
|
||||
- HUMP Gamestate, Copyright (c) 2010-2013 Matthias Richter
|
||||
- GameJolt.lua, Copyright (c) 2015 insweater
|
||||
- inifile, Copyright (c) 2011-2015 Bart van Strien
|
||||
- Ser, Copyright (c) 2011,2013 Robin Wellner
|
||||
|
||||
All of these libraries and RGB itself are licensed under the MIT License:
|
||||
|
||||
|
@@ -86,10 +86,12 @@ end
|
||||
|
||||
function game:resume(previous, action)
|
||||
if action == "LOST" then
|
||||
log("Game restarted.")
|
||||
game:enter(previousState) --we want to keep the old values
|
||||
totalScore = 0 --this should have happened in game:leave() but does not for an unknown reason
|
||||
end
|
||||
if action == "UNPAUSED" then
|
||||
log("Game resumed.")
|
||||
love.graphics.setNewFont(28) -- fix our font!
|
||||
end
|
||||
end
|
||||
@@ -115,6 +117,7 @@ function game:update(dt)
|
||||
end
|
||||
end
|
||||
if won then
|
||||
log("Level beat!")
|
||||
-- TODO we need a brief push/pop of gamestate to display a winning message
|
||||
nextLevel()
|
||||
end
|
||||
|
Reference in New Issue
Block a user