美化隐形方块回放显示
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
local gc=love.graphics
|
||||
local mt=love.math
|
||||
local Timer=love.timer.getTime
|
||||
local int,ceil,abs,rnd,max,min=math.floor,math.ceil,math.abs,math.random,math.max,math.min
|
||||
local int,ceil,rnd=math.floor,math.ceil,math.random
|
||||
local max,min,abs,sin,cos=math.max,math.min,math.abs,math.sin,math.cos
|
||||
local ins,rem=table.insert,table.remove
|
||||
local format=string.format
|
||||
local scr=scr
|
||||
@@ -588,7 +589,7 @@ do--function Pdraw_norm(P)
|
||||
gc.setColor(1,1,1,min(V[j][i]*.05,1))
|
||||
drawPixel(j,i,F[j][i])
|
||||
elseif game.replaying then
|
||||
gc.setColor(1,1,1,.2)
|
||||
gc.setColor(1,1,1,.3+.08*sin(.5*(j-i)+Timer()*4))
|
||||
gc.rectangle("fill",30*i-30,600-30*j,30,30)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user