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