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

@@ -1,5 +1,5 @@
local gc,ms=love.graphics,love.mouse
local int,rnd=math.floor,math.random
local floor,rnd=math.floor,math.random
local rem=table.remove
local setFont,mStr=FONT.set,GC.mStr
@@ -45,8 +45,8 @@ local function tapBoard(x,y)
startTime=TIME()
progress=0
elseif state==1 then
local X=int((x-320)/640*R)
local Y=int((y-40)/640*R)
local X=floor((x-320)/640*R)
local Y=floor((y-40)/640*R)
x=R*Y+X+1
if board[x]==progress+1 then
progress=progress+1