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": [ "Lua.workspace.library": [
"${3rd}/love2d/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, "Lua.workspace.checkThirdParty": false,
"githubPullRequests.ignoredPullRequestBranches": [ "githubPullRequests.ignoredPullRequestBranches": [

View File

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

View File

@@ -51,9 +51,12 @@ function love.load()
require "scene" require "scene"
require "game.vctrl" -- VCTRL require "game.vctrl" -- VCTRL
SCENE.update = function() function SCENE.update()
SCENE = SETTINGS.firstTime and InputConfigScene(true) or TitleScene() SCENE = SETTINGS.firstTime and InputConfigScene(true) or TitleScene()
end 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.toggle(love.system.getOS()=='Android' or true)
VCTRL.new{ -- up down left right --- right left down up 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:new() end
function SCENE:update() end function SCENE:update() end
function SCENE:render() function SCENE:render() end
love.graphics.draw(LOADING_IMAGE_FILE,0,0,0,0.5)
end
-- You can use the class SCENE_onInput to show suggestions for `e` table -- You can use the class SCENE_onInput to show suggestions for `e` table