arm小程序删除答错自动清空

整理代码 框架跟进
This commit is contained in:
MrZ_26
2023-08-11 18:29:30 +08:00
parent 540099a944
commit 3fbff37095
27 changed files with 149 additions and 157 deletions

View File

@@ -5,7 +5,7 @@ local gc_rectangle,gc_circle=GC.rectangle,GC.circle
local isDown=love.keyboard.isDown
local int,max,min=math.floor,math.max,math.min
local floor,max,min=math.floor,math.max,math.min
local mStr=GC.mStr
@@ -169,7 +169,7 @@ local function press(x,y)
end
function scene.touchDown(x,y)
x,y=int((x-pad.x)/80),int((y-pad.y)/80)
x,y=floor((x-pad.x)/80),floor((y-pad.y)/80)
if x>=0 and x<=8 and y>=0 and y<=7 then
press(x,y+1)
end