0.9.1:next音效
This commit is contained in:
BIN
SFX/spawn_1.ogg
Normal file
BIN
SFX/spawn_1.ogg
Normal file
Binary file not shown.
BIN
SFX/spawn_2.ogg
Normal file
BIN
SFX/spawn_2.ogg
Normal file
Binary file not shown.
BIN
SFX/spawn_3.ogg
Normal file
BIN
SFX/spawn_3.ogg
Normal file
Binary file not shown.
BIN
SFX/spawn_4.ogg
Normal file
BIN
SFX/spawn_4.ogg
Normal file
Binary file not shown.
BIN
SFX/spawn_5.ogg
Normal file
BIN
SFX/spawn_5.ogg
Normal file
Binary file not shown.
BIN
SFX/spawn_6.ogg
Normal file
BIN
SFX/spawn_6.ogg
Normal file
Binary file not shown.
BIN
SFX/spawn_7.ogg
Normal file
BIN
SFX/spawn_7.ogg
Normal file
Binary file not shown.
@@ -256,6 +256,7 @@ local langList={
|
|||||||
quickR="快速重新开始",
|
quickR="快速重新开始",
|
||||||
swap="组合键切换攻击模式",
|
swap="组合键切换攻击模式",
|
||||||
fine="极简操作提示音",
|
fine="极简操作提示音",
|
||||||
|
spawn="方块生成音",
|
||||||
back="返回",
|
back="返回",
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
@@ -694,6 +695,7 @@ local langList={
|
|||||||
quickR="快速重新开始",
|
quickR="快速重新开始",
|
||||||
swap="组合键切换攻击模式",
|
swap="组合键切换攻击模式",
|
||||||
fine="极简操作提示音",
|
fine="极简操作提示音",
|
||||||
|
spawn="方块生成音",
|
||||||
back="返回",
|
back="返回",
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
@@ -1121,6 +1123,7 @@ local langList={
|
|||||||
quickR="Quick Retry",
|
quickR="Quick Retry",
|
||||||
swap="Key Combination (Change Atk. Mode)",
|
swap="Key Combination (Change Atk. Mode)",
|
||||||
fine="Finesse Error Sound",
|
fine="Finesse Error Sound",
|
||||||
|
spawn="Piece Spawning Sound",
|
||||||
back="Back",
|
back="Back",
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ SFX.list={
|
|||||||
"virtualKey",
|
"virtualKey",
|
||||||
"button","swipe",
|
"button","swipe",
|
||||||
"ready","start","win","fail","collect",
|
"ready","start","win","fail","collect",
|
||||||
|
"spawn_1","spawn_2","spawn_3","spawn_4","spawn_5","spawn_6","spawn_7",
|
||||||
"move","rotate","rotatekick","hold",
|
"move","rotate","rotatekick","hold",
|
||||||
"prerotate","prehold",
|
"prerotate","prehold",
|
||||||
"lock","drop","fall",
|
"lock","drop","fall",
|
||||||
@@ -38,6 +39,7 @@ end
|
|||||||
function SFX.play(s,v,pos)
|
function SFX.play(s,v,pos)
|
||||||
if setting.sfx==0 then return end
|
if setting.sfx==0 then return end
|
||||||
local S=SFX.list[s]--source list
|
local S=SFX.list[s]--source list
|
||||||
|
if not S then return end
|
||||||
local n=1
|
local n=1
|
||||||
while S[n]:isPlaying()do
|
while S[n]:isPlaying()do
|
||||||
n=n+1
|
n=n+1
|
||||||
|
|||||||
@@ -221,9 +221,10 @@ local Widgets={
|
|||||||
layout= newButton(590,540,140,70,C.white,35,function()
|
layout= newButton(590,540,140,70,C.white,35,function()
|
||||||
SCN.goto("setting_skin")
|
SCN.goto("setting_skin")
|
||||||
end,nil,"quickR"),
|
end,nil,"quickR"),
|
||||||
quickR= newSwitch(1050,340,35, SETval("quickR"), SETrev("quickR"), nil,"swap"),
|
quickR= newSwitch(1050,320,35, SETval("quickR"), SETrev("quickR"), nil,"swap"),
|
||||||
swap= newSwitch(1050,440,19, SETval("swap"), SETrev("swap"), nil,"fine"),
|
swap= newSwitch(1050,400,20, SETval("swap"), SETrev("swap"), nil,"fine"),
|
||||||
fine= newSwitch(1050,540,20, SETval("fine"), SETrev("fine"), nil,"back"),
|
fine= newSwitch(1050,480,20, SETval("fine"), SETrev("fine"), nil,"spawn"),
|
||||||
|
spawn= newSwitch(1050,560,20, SETval("spawn"), SETrev("spawn"), nil,"back"),
|
||||||
back= newButton(1140,650,200,80,C.white,40,BACK, nil,"graphic"),
|
back= newButton(1140,650,200,80,C.white,40,BACK, nil,"graphic"),
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
|
|||||||
BIN
image/skin/WTF.png
Normal file
BIN
image/skin/WTF.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 B |
3
main.lua
3
main.lua
@@ -115,6 +115,9 @@ if setting.skin[10]==5 then
|
|||||||
setting.skin[10],setting.skin[11]=1,5
|
setting.skin[10],setting.skin[11]=1,5
|
||||||
end
|
end
|
||||||
if S.version~=gameVersion then
|
if S.version~=gameVersion then
|
||||||
|
if S.version then
|
||||||
|
setting.spawn=true
|
||||||
|
end
|
||||||
S.version=gameVersion
|
S.version=gameVersion
|
||||||
TEXT.show(text.newVersion,640,200,30,"fly",.3)
|
TEXT.show(text.newVersion,640,200,30,"fly",.3)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,10 +5,11 @@ local s={
|
|||||||
ihs=true,irs=true,ims=true,
|
ihs=true,irs=true,ims=true,
|
||||||
reTime=4,
|
reTime=4,
|
||||||
maxNext=6,
|
maxNext=6,
|
||||||
|
autoPause=true,
|
||||||
quickR=true,
|
quickR=true,
|
||||||
swap=true,
|
swap=true,
|
||||||
fine=false,
|
fine=false,
|
||||||
autoPause=true,
|
spawn=false,
|
||||||
lang=1,
|
lang=1,
|
||||||
skinSet=1,
|
skinSet=1,
|
||||||
skin={1,5,8,2,10,3,7,1,5,1,5,8,2,10,3,7,10,7,8,2,8,2,1,5,3},
|
skin={1,5,8,2,10,3,7,1,5,1,5,8,2,10,3,7,10,7,8,2,8,2,1,5,3},
|
||||||
@@ -32,9 +33,11 @@ local s={
|
|||||||
powerInfo=false,
|
powerInfo=false,
|
||||||
|
|
||||||
--sound
|
--sound
|
||||||
sfx=10,bgm=7,
|
sfx=10,
|
||||||
vib=0,voc=0,
|
bgm=7,
|
||||||
stereo=6,
|
stereo=6,
|
||||||
|
vib=0,
|
||||||
|
voc=0,
|
||||||
|
|
||||||
--virtualkey
|
--virtualkey
|
||||||
VKSFX=3,--SFX volume
|
VKSFX=3,--SFX volume
|
||||||
|
|||||||
@@ -1348,6 +1348,9 @@ function player.hold(P,ifpre)
|
|||||||
P:freshgho()
|
P:freshgho()
|
||||||
P.dropDelay,P.lockDelay,P.freshTime=P.gameEnv.drop,P.gameEnv.lock,max(P.freshTime-5,0)
|
P.dropDelay,P.lockDelay,P.freshTime=P.gameEnv.drop,P.gameEnv.lock,max(P.freshTime-5,0)
|
||||||
if P:ifoverlap(P.cur.bk,P.curX,P.curY)then P:lock()P:lose()end
|
if P:ifoverlap(P.cur.bk,P.curX,P.curY)then P:lock()P:lose()end
|
||||||
|
if P.human and setting.spawn then
|
||||||
|
SFX.play("spawn_"..C.id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if P.human then
|
if P.human then
|
||||||
@@ -1403,6 +1406,9 @@ function player.popNext(P)--pop next queue to hand
|
|||||||
end
|
end
|
||||||
|
|
||||||
if _[6]then P.act.hardDrop(P)_[6]=false end--IHdS
|
if _[6]then P.act.hardDrop(P)_[6]=false end--IHdS
|
||||||
|
if P.human and setting.spawn then
|
||||||
|
SFX.play("spawn_"..P.cur.id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function player.drop(P)--Place piece
|
function player.drop(P)--Place piece
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ local list={
|
|||||||
"text_bone(mrz)",
|
"text_bone(mrz)",
|
||||||
"colored_bone(mrz)",
|
"colored_bone(mrz)",
|
||||||
"white_bone(mrz)",
|
"white_bone(mrz)",
|
||||||
|
"WTF",
|
||||||
}
|
}
|
||||||
local SKIN={}
|
local SKIN={}
|
||||||
SKIN.lib={}
|
SKIN.lib={}
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ Future outlook:
|
|||||||
mine sweeper
|
mine sweeper
|
||||||
tank battle
|
tank battle
|
||||||
简易防沉迷系统
|
简易防沉迷系统
|
||||||
"next" SFX
|
|
||||||
full-key control
|
full-key control
|
||||||
touch-drag control
|
touch-drag control
|
||||||
cool backgrounds
|
cool backgrounds
|
||||||
@@ -71,12 +70,15 @@ Future outlook:
|
|||||||
network game
|
network game
|
||||||
new AI: task-Z
|
new AI: task-Z
|
||||||
|
|
||||||
0.9.1: Bug fixed
|
0.9.1: next piece SFX
|
||||||
|
new:
|
||||||
|
next piece spawn SFX
|
||||||
code:
|
code:
|
||||||
render background to canvas first, not redering each frame
|
render background to canvas first, not redering each frame
|
||||||
fixed:
|
fixed:
|
||||||
error when moving [nothing] when arr>0
|
error when moving [nothing] when arr>0
|
||||||
error when complete master-advanced
|
error when complete master-advanced
|
||||||
|
|
||||||
0.9.0: Custom Sequence Update
|
0.9.0: Custom Sequence Update
|
||||||
new:
|
new:
|
||||||
custom sequence
|
custom sequence
|
||||||
|
|||||||
Reference in New Issue
Block a user