local displayseconds = 0 local displayminutes = 0 local displayhours = 0 function update(dt) displayhours = string.format("%02d", math.floor(ac.getSim().timeHours)%24) displayminutes = string.format("%02d", math.floor(ac.getSim().timeMinutes)%60) displayseconds = string.format("%02d", math.floor(ac.getSim().timeSeconds)%60) display.text{ pos=vec2(2,0) , letter=vec2(44, 65), text=displayhours, font="digital_big1", spacing = 0, color = rgbm(255, 200, 200, 1) } display.text{ pos=vec2(100,0) , letter=vec2(44, 65), text=displayminutes, font="digital_big1", spacing = 0, color = rgbm(255, 200, 200, 1) } display.text{ pos=vec2(194,0) , letter=vec2(44, 65), text=displayseconds, font="digital_big1", spacing = 0, color = rgbm(255, 200, 200, 1) } end