From 0aeb0139d3b5b40d16a4bed3d75217fc86d052a0 Mon Sep 17 00:00:00 2001 From: checamon Date: Mon, 27 Dec 2021 22:23:19 +0100 Subject: [PATCH] clock update --- src/Clock.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Clock.lua b/src/Clock.lua index 3959f56..117a981 100644 --- a/src/Clock.lua +++ b/src/Clock.lua @@ -4,7 +4,7 @@ function Clock:init(timelimit, direction) self.timeLimit = timelimit self.direction = direction self.color = {56 / 255, 56 / 255, 56 / 255, 1} - self.currentTime = "" + self.currentTime = "0" self.timer = 0 self.startTime = self:getOsTime() end @@ -19,7 +19,6 @@ function Clock:update(dt) end function Clock:render() - TODO TODO if self.currentTime * 1 <= 10 then local a = math.abs(math.cos(love.timer.getTime() * .85 % 2 * math.pi)) love.graphics.setColor(.8, .12, .12, a)