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