diff options
author | Aki <nthirtyone@gmail.com> | 2016-06-14 18:24:08 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-06-14 18:24:08 +0200 |
commit | 26e9a02a6ec1a285c7ff8c6a01ce21d7ff50215d (patch) | |
tree | e41e89542b935912e589eec22ee8bb2fa492124f | |
parent | 498e754f7725cbf8e19d60a03b1d7b30fdae823e (diff) | |
download | roflnauts-26e9a02a6ec1a285c7ff8c6a01ce21d7ff50215d.zip roflnauts-26e9a02a6ec1a285c7ff8c6a01ce21d7ff50215d.tar.gz roflnauts-26e9a02a6ec1a285c7ff8c6a01ce21d7ff50215d.tar.bz2 |
Speed-up countdown
-rw-r--r-- | menu.lua | 7 | ||||
-rw-r--r-- | selector.lua | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -88,6 +88,13 @@ function Menu:update(dt) end end +-- Speed up countdown +function Menu:countdownJump() + if self.countdown ~= 6 then + self.countdown = self.countdown - 1 + end +end + -- function Menu:unselectSelector(selector) local i = 0 diff --git a/selector.lua b/selector.lua index 9213f3d..17f76c1 100644 --- a/selector.lua +++ b/selector.lua @@ -80,6 +80,8 @@ function Selector:controllerPressed(control, controller) self.parent:unselectSelector(self) end end + -- Speed up countdown + self.parent:countdownJump() end -- It just must be here function Selector:controllerReleased(control, controller) |