aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/config.lua4
-rw-r--r--bin/jin.exebin727040 -> 1451520 bytes
-rw-r--r--bin/main.lua6
3 files changed, 9 insertions, 1 deletions
diff --git a/bin/config.lua b/bin/config.lua
index 40e4eac..8f75804 100644
--- a/bin/config.lua
+++ b/bin/config.lua
@@ -2,5 +2,7 @@ return
{
width = 320 * 2,
height = 240 * 2,
- fps = 60
+ fps = 60,
+ vsync = false,
+ title = "动态光照demo"
} \ No newline at end of file
diff --git a/bin/jin.exe b/bin/jin.exe
index aeccaf1..8747343 100644
--- a/bin/jin.exe
+++ b/bin/jin.exe
Binary files differ
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)