clock update
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user