blackhole背景中方块会公转,整理代码

This commit is contained in:
MrZ626
2021-04-29 14:28:07 +08:00
parent 19a3181ffb
commit bb30a8e9d1
3 changed files with 20 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
--Block rain
--Large falling tetrominoes
local gc=love.graphics
local rnd=math.random
local ins,rem=table.insert,table.remove
@@ -17,12 +17,12 @@ function back.update()
local B=BLOCKS[r][rnd(0,3)]
local k=(1+rnd()*2)*SCR.rad/1000
ins(mino,{
block=B,
texture=SKIN.curText[SETTING.skin[r]],
k=k,
x=(SCR.w)*rnd()-15*#B[1],
y=0,
k=k,
vy=k*2,
block=B,
texture=SKIN.curText[SETTING.skin[r]],
})
end
for i=#mino,1,-1 do