clock update

This commit is contained in:
2021-12-27 22:23:19 +01:00
parent 391e2ab1b7
commit 0aeb0139d3

View File

@@ -4,7 +4,7 @@ function Clock:init(timelimit, direction)
self.timeLimit = timelimit self.timeLimit = timelimit
self.direction = direction self.direction = direction
self.color = {56 / 255, 56 / 255, 56 / 255, 1} self.color = {56 / 255, 56 / 255, 56 / 255, 1}
self.currentTime = "" self.currentTime = "0"
self.timer = 0 self.timer = 0
self.startTime = self:getOsTime() self.startTime = self:getOsTime()
end end
@@ -19,7 +19,6 @@ function Clock:update(dt)
end end
function Clock:render() function Clock:render()
TODO TODO
if self.currentTime * 1 <= 10 then if self.currentTime * 1 <= 10 then
local a = math.abs(math.cos(love.timer.getTime() * .85 % 2 * math.pi)) local a = math.abs(math.cos(love.timer.getTime() * .85 % 2 * math.pi))
love.graphics.setColor(.8, .12, .12, a) love.graphics.setColor(.8, .12, .12, a)