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 @@
-- Fast lightning + spining tetromino
local int,rnd=math.floor,math.random
local floor,rnd=math.floor,math.random
local back={}
local t
@@ -12,7 +12,7 @@ function back.update(dt)
t=t+dt
end
function back.draw()
local R=7-int(t*.5%7)
local R=7-floor(t*.5%7)
local T=1.2-t%15%6%1.8
if T<.26 then GC.clear(T,T,T)
else GC.clear(0,0,0)