调整方块朝向菜单彩蛋模式进入方式
This commit is contained in:
@@ -5,10 +5,15 @@ local sin=math.sin
|
|||||||
local selRS
|
local selRS
|
||||||
local minoRot={0,0,0,0,0,0,0}
|
local minoRot={0,0,0,0,0,0,0}
|
||||||
local minoRot0={}
|
local minoRot0={}
|
||||||
|
local selEggMode
|
||||||
|
|
||||||
|
local playEgg=WIDGET.newButton{name='playEgg', x=1140,y=540,w=140,h=65,color='lP',font=60,fText=CHAR.icon.rankZ,code=function()loadGame(selEggMode,true)end}
|
||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
|
selEggMode=false
|
||||||
|
scene.widgetList.playEgg.hide=true
|
||||||
BG.set()
|
BG.set()
|
||||||
selRS=RSlist[SETTING.RS]
|
selRS=RSlist[SETTING.RS]
|
||||||
for i=1,7 do
|
for i=1,7 do
|
||||||
@@ -59,14 +64,18 @@ end
|
|||||||
local function _nextDir(i)
|
local function _nextDir(i)
|
||||||
SETTING.face[i]=(SETTING.face[i]+1)%4
|
SETTING.face[i]=(SETTING.face[i]+1)%4
|
||||||
minoRot0[i]=minoRot0[i]+1.5707963
|
minoRot0[i]=minoRot0[i]+1.5707963
|
||||||
if not GAME.playing then
|
if not selEggMode and not GAME.playing then
|
||||||
if minoRot0[5]>62 then
|
if minoRot0[5]>62 then
|
||||||
loadGame('marathon_bfmax',true)
|
selEggMode='marathon_bfmax'
|
||||||
|
playEgg.color=COLOR.dR
|
||||||
elseif minoRot0[6]>62 then
|
elseif minoRot0[6]>62 then
|
||||||
loadGame('techrash_n',true)
|
selEggMode='techrash_n'
|
||||||
|
playEgg.color=COLOR.lP
|
||||||
elseif minoRot0[7]>62 then
|
elseif minoRot0[7]>62 then
|
||||||
loadGame('techrash_u',true)
|
selEggMode='techrash_u'
|
||||||
|
playEgg.color=COLOR.lY
|
||||||
end
|
end
|
||||||
|
playEgg.hide=not selEggMode
|
||||||
end
|
end
|
||||||
SFX.play('rotate')
|
SFX.play('rotate')
|
||||||
end
|
end
|
||||||
@@ -115,6 +124,7 @@ scene.widgetList={
|
|||||||
SFX.play('hold')
|
SFX.play('hold')
|
||||||
end},
|
end},
|
||||||
WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,font=60,fText=CHAR.icon.back,code=backScene},
|
WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,font=60,fText=CHAR.icon.back,code=backScene},
|
||||||
|
playEgg,
|
||||||
}
|
}
|
||||||
|
|
||||||
return scene
|
return scene
|
||||||
|
|||||||
Reference in New Issue
Block a user