diff options
Diffstat (limited to 'bin/main.lua')
-rw-r--r-- | bin/main.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/main.lua b/bin/main.lua index 11af7fd..67c6122 100644 --- a/bin/main.lua +++ b/bin/main.lua @@ -58,11 +58,17 @@ jin.core.onEvent = function(e) end end local mx, my +local c = 0 jin.core.onUpdate = function(dt) mx, my = jin.mouse.position() mx = mx / 2 my = my / 2 my = wh - my + c = c + 1 + if c == 50 then + print(1/dt) + c = 0 + end end img:setAnchor(16, 16) local cvs = jg.Canvas(320, 240) |