This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-21 23:05:07 +07:00
parent 20a225db33
commit 6fd6d79100
4 changed files with 8 additions and 5 deletions

View File

@@ -5,7 +5,8 @@
},
"Lua.workspace.library": [
"${3rd}/love2d/library",
"C:/Users/Harry/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/love2d/module/library"
"C:/Users/Harry/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/love2d/module/library",
"C:/Users/Harry/AppData/Roaming/Code/User/globalStorage/sumneko.lua/addonManager/addons/lldebugger/module/library"
],
"Lua.workspace.checkThirdParty": false,
"githubPullRequests.ignoredPullRequestBranches": [

View File

@@ -125,6 +125,7 @@ end
---Trigger release action, don't need ``self._hovering`` to ``true``
---@param isTouch? boolean Button just released by mouse?
function button:release(x, y, isTouch)
error()
local hovering = isTouch and self:isHovering(x, y) or self._hovering
if hovering and self._pressed then

View File

@@ -51,9 +51,12 @@ function love.load()
require "scene"
require "game.vctrl" -- VCTRL
SCENE.update = function()
function SCENE.update()
SCENE = SETTINGS.firstTime and InputConfigScene(true) or TitleScene()
end
function SCENE.render()
love.graphics.draw(LOADING_IMAGE_FILE,0,0,0,0.5)
end
-- VCTRL.toggle(love.system.getOS()=='Android' or true)
VCTRL.new{ -- up down left right --- right left down up

View File

@@ -4,9 +4,7 @@ SCENE = Object:extend()
function SCENE:new() end
function SCENE:update() end
function SCENE:render()
love.graphics.draw(LOADING_IMAGE_FILE,0,0,0,0.5)
end
function SCENE:render() end
-- You can use the class SCENE_onInput to show suggestions for `e` table