summaryrefslogtreecommitdiffstats
path: root/screens/time.lua
diff options
context:
space:
mode:
Diffstat (limited to 'screens/time.lua')
-rw-r--r--screens/time.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/screens/time.lua b/screens/time.lua
new file mode 100644
index 0000000..bfc7a2d
--- /dev/null
+++ b/screens/time.lua
@@ -0,0 +1,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