修改游戏启动时立刻进入cmd的方法
This commit is contained in:
@@ -10,8 +10,7 @@ local shadePhase1,shadePhase2
|
|||||||
local progress=0
|
local progress=0
|
||||||
local studioLogo--Studio logo text object
|
local studioLogo--Studio logo text object
|
||||||
local logoColor1,logoColor2
|
local logoColor1,logoColor2
|
||||||
local skip
|
local skip,locked,cmdLaunchKey
|
||||||
local locked
|
|
||||||
|
|
||||||
local light={}
|
local light={}
|
||||||
for i=0,26 do
|
for i=0,26 do
|
||||||
@@ -201,6 +200,7 @@ function scene.sceneInit()
|
|||||||
shadePhase2=6.26*math.random()
|
shadePhase2=6.26*math.random()
|
||||||
skip=0--Skip time
|
skip=0--Skip time
|
||||||
locked=SETTING.appLock
|
locked=SETTING.appLock
|
||||||
|
cmdLaunchKey=0
|
||||||
kb.setKeyRepeat(false)
|
kb.setKeyRepeat(false)
|
||||||
end
|
end
|
||||||
function scene.sceneBack()
|
function scene.sceneBack()
|
||||||
@@ -212,6 +212,8 @@ function scene.keyDown(key)
|
|||||||
SCN.back()
|
SCN.back()
|
||||||
elseif key=="s"then
|
elseif key=="s"then
|
||||||
skip=999
|
skip=999
|
||||||
|
elseif key=="r"then
|
||||||
|
cmdLaunchKey=cmdLaunchKey+1
|
||||||
elseif locked and("12345679"):match(key,nil,false)then
|
elseif locked and("12345679"):match(key,nil,false)then
|
||||||
key=tonumber(key)
|
key=tonumber(key)
|
||||||
light[3*key]=not light[3*key]
|
light[3*key]=not light[3*key]
|
||||||
@@ -268,7 +270,7 @@ function scene.update(dt)
|
|||||||
skip=skip-1
|
skip=skip-1
|
||||||
end
|
end
|
||||||
if openTime>=3.26 and not SCN.swapping then
|
if openTime>=3.26 and not SCN.swapping then
|
||||||
if kb.isDown("r")then
|
if cmdLaunchKey==2 then
|
||||||
SCN.push("intro")
|
SCN.push("intro")
|
||||||
SCN.swapTo("app_cmd")
|
SCN.swapTo("app_cmd")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user