- Update init.lua

This commit is contained in:
ParticleG
2024-10-31 10:40:09 +08:00
parent 1ed2cd468e
commit 95283b6fc7

View File

@@ -93,7 +93,7 @@ SFX= require'Zframework.sfx'
IMG= require'Zframework.image' IMG= require'Zframework.image'
BGM= require'Zframework.bgm' BGM= require'Zframework.bgm'
VOC= require'Zframework.voice' VOC= require'Zframework.voice'
JS= require'Zframework.js' JS= SYSTEM == 'Web' and require'Zframework.js' or NULL
local ms,kb=love.mouse,love.keyboard local ms,kb=love.mouse,love.keyboard
local KBisDown=kb.isDown local KBisDown=kb.isDown
@@ -176,12 +176,14 @@ local function updatePowerInfo()
gc.setCanvas() gc.setCanvas()
end end
JS.callJS(JS.stringFunc( if JS then
[[ JS.callJS(JS.stringFunc(
console.log("Love.js Api Player initialized: Techmino %s"); [[
]], console.log("Love.js Api Player initialized: Techmino %s");
VERSION.string ]],
)) VERSION.string
))
end
------------------------------------------------------------- -------------------------------------------------------------
local lastX,lastY=0,0-- Last click pos local lastX,lastY=0,0-- Last click pos