diff options
author | Aki <nthirtyone@gmail.com> | 2017-07-16 17:20:03 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-07-16 17:20:03 +0200 |
commit | 73bca2d56b9a95b6b233da8ac466ba1d1f081c76 (patch) | |
tree | 34221b07f3690829b32e9068d2c31068c69716cd /not | |
parent | 1aa2ddfd920899e61295d876f3433dcab6dd6ed8 (diff) | |
download | roflnauts-73bca2d56b9a95b6b233da8ac466ba1d1f081c76.zip roflnauts-73bca2d56b9a95b6b233da8ac466ba1d1f081c76.tar.gz roflnauts-73bca2d56b9a95b6b233da8ac466ba1d1f081c76.tar.bz2 |
Pause works now
MusicPlayer bug still exists for pause and win screens
Diffstat (limited to 'not')
-rw-r--r-- | not/World.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/not/World.lua b/not/World.lua index 29c46cc..c6b74a3 100644 --- a/not/World.lua +++ b/not/World.lua @@ -371,6 +371,11 @@ function World:controlpressed (set, action, key) local new = World(map, nauts) sceneManager:changeScene(new) end + if key == "escape" then + sceneManager:addScene(Menu("pause")) + self:setInputDisabled(true) + self:setSleeping(true) + end for k,naut in pairs(self:getNautsAll()) do naut:controlpressed(set, action, key) end |