summaryrefslogtreecommitdiffstats
path: root/screens/time.lua
blob: bfc7a2db306ea37f3734244048c8f475e40e7c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local node = {}
local socket = require("socket")

local textFont = love.graphics.newFont('fonts/Lato-Thin.ttf', 400)

function node.load()
end

function node.render()
  love.graphics.setColor( 0, 0, 0 )
  love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics.getHeight())

  love.graphics.setColor( 255, 255, 255 )
  love.graphics.setFont(textFont);
  love.graphics.printf(os.date('%H:%M'), 0, 120, love.graphics.getWidth(), 'center');
end

function node.update(dt)
end

return node