直接放入Zframework文件

This commit is contained in:
MrZ_26
2023-12-04 20:02:12 +08:00
parent 8ee7a90eca
commit f38746ff96
36 changed files with 13120 additions and 0 deletions

12
Zframework/vibrate.lua Normal file
View File

@@ -0,0 +1,12 @@
local level={0,0,.01,.016,.023,.03,.04,.05,.06,.07,.08,.09,.12,.15}
local vib=love.system.vibrate
return SYSTEM=='iOS' and
function(t)
t=level[t]
if t then vib(t<=.03 and 1 or t<=.09 and 2 or 3) end
end
or
function(t)
t=level[t]
if t then vib(t) end
end