arm小程序删除答错自动清空
整理代码 框架跟进
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- A lantern background which is full of festive atmosphere. Lantern image by ScF
|
||||
local int,rnd=math.floor,math.random
|
||||
local floor,rnd=math.floor,math.random
|
||||
local ins,rem=table.insert,table.remove
|
||||
local mDraw=mDraw
|
||||
local back={}
|
||||
@@ -41,7 +41,7 @@ function back.draw()
|
||||
local img=IMG.lanterns
|
||||
for i=1,#lanterns do
|
||||
local L=lanterns[i]
|
||||
mDraw(img[int(L.phase*6)+1],L.x,L.y,nil,L.size)
|
||||
mDraw(img[floor(L.phase*6)+1],L.x,L.y,nil,L.size)
|
||||
end
|
||||
end
|
||||
return back
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user