可以修改O块初始方向

This commit is contained in:
MrZ626
2021-08-09 11:35:04 +08:00
parent 20cd27d7f6
commit 02189c4262
2 changed files with 8 additions and 10 deletions

View File

@@ -62,13 +62,7 @@ return{
ihs="提前暂存",
},
setting_skin={
spin1="",
spin2="",
spin3="",
spin4="",
spin5="",
spin6="",
spin7="",
spin1="",spin2="",spin3="",spin4="",spin5="",spin6="",spin7="",
},
customGame={
mod="模组(F1)",

View File

@@ -2,12 +2,14 @@ local gc=love.graphics
local int=math.floor
local sin=math.sin
local selRS
local minoRot={0,0,0,0,0,0,0}
local minoRot0={}
local scene={}
function scene.sceneInit()
selRS=RSlist[SETTING.RS]
for i=1,7 do
minoRot0[i]=SETTING.face[i]*1.57
minoRot[i]=minoRot0[i]
@@ -29,14 +31,16 @@ function scene.draw()
gc.rotate(minoRot[n]+sin(t*3-n*.5)*.08)
local color=SETTING.skin[n]
local B=BLOCKS[n][0]
local x,y=-45-DSCP[n][0][2]*30,15+DSCP[n][0][1]*30
local x,y=-45-selRS.centerPos[n][0][2]*30,15+selRS.centerPos[n][0][1]*30
local col=#B[1]
for i=1,#B do for j=1,col do
if B[i][j]then
gc.draw(texture[color],x+30*j,y-30*i)
end
end end
gc.circle('fill',0,0,sin(t*10)+5)
if selRS.centerDisp[n]then
mDraw(selRS.centerTex)
end
gc.pop()
end
for i=1,5 do
@@ -85,7 +89,7 @@ scene.widgetList={
WIDGET.newButton{name="spin3", x=410,y=540,w=90,h=65,code=function()nextDir(3)end},
WIDGET.newButton{name="spin4", x=550,y=540,w=90,h=65,code=function()nextDir(4)end},
WIDGET.newButton{name="spin5", x=690,y=540,w=90,h=65,code=function()nextDir(5)end},
--WIDGET.newButton{name="spin6",x=825,y=540,w=90,h=65,code=function()nextDir(6)end},--Cannot rotate O
WIDGET.newButton{name="spin6", x=825,y=540,w=90,h=65,code=function()nextDir(6)end},
WIDGET.newButton{name="spin7", x=970,y=540,w=90,h=65,code=function()nextDir(7)end},
WIDGET.newButton{name="skinR", x=200,y=640,w=220,h=80,color='lV',font=35,