mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
TEST
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -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": [
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
5
main.lua
5
main.lua
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user