scenes/levels: add a basic pause system

This commit is contained in:
Kazhnuz 2019-03-04 09:25:54 +01:00
parent d39ab7b651
commit e27164a45c
1 changed files with 4 additions and 0 deletions

View File

@ -128,6 +128,10 @@ function Level:update(dt)
assets:update(dt)
self.camera:update(dt)
end
if self.keys["start"].isPressed then
self.pause = (self.pause == false)
end
end
-- DRAW FUNCTIONS