diff options
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 |