修改弹幕事件bug

This commit is contained in:
草莓 2024-12-05 17:18:40 +08:00
parent 21d9f1f611
commit abb295ab87
5 changed files with 56 additions and 6 deletions

View File

@ -1243,12 +1243,12 @@ return code;
*/;
addPop_s
: '弹出弹幕' ':' EvalString BGNL? Newline
'出现像素位置x' Int 'y' Int '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour BGNL? Newline
'出现像素位置px' Int 'py' Int '文字颜色' ColorString? Colour '描边颜色' ColorString? Colour BGNL? Newline
'左侧滚动' Bool? '文字跳跃' Bool? '显示时长' Int? '渐隐时长' Int? '字体信息' EvalString? '移动速度' Number? Newline
/*addPop_s
tooltip : addPop游戏中增加一条弹幕
helpUrl : /_docs/#/instruction
default : ["这段话将在游戏中以弹幕显示",0,0,"255,0,0,1",'rgba(255,0,0,1)',"0,0,0,1",'rgba(0,0,0,1)',false,false,60,30,'16px Verdana',1]
default : ["这段话将在游戏中以弹幕显示",32,32,"255,0,0,1",'rgba(255,0,0,1)',"0,0,0,1",'rgba(0,0,0,1)',false,false,60,30,'16px Verdana',1]
var code = '{"type": "addPop", "value": "'+EvalString_0+'","px":'+Int_0+',"py":'+Int_1+',"color": ['+ColorString_0+'], "boldColor": ['+ColorString_1+'], "left": '+Bool_0+', "jump": '+Bool_1+', "time": '+Int_2+', "show": '+Int_3+', "font": "'+EvalString_1+'","speed":'+Number_0+'},\n';
return code;
*/;

File diff suppressed because one or more lines are too long

View File

@ -385,6 +385,31 @@ var events_c12a15a8_c380_4b28_8144_256cba95f760 =
"div": "gameGroup"
}
],
"添加弹幕": null
"添加弹幕": [
{
"type": "addPop",
"value": "这段话将在游戏中以弹幕显示",
"px": 32,
"py": 32,
"color": [
255,
0,
0,
1
],
"boldColor": [
0,
0,
0,
1
],
"left": false,
"jump": false,
"time": 60,
"show": 30,
"font": "16px Verdana",
"speed": 1
}
]
}
}

View File

@ -19,7 +19,32 @@ main.floors.jiuguan=
"eachArrive": [],
"parallelDo": "",
"events": {
"4,6": []
"4,6": [
{
"type": "addPop",
"value": "这段话将在游戏中以弹幕显示",
"px": 32,
"py": 32,
"color": [
255,
0,
0,
1
],
"boldColor": [
0,
0,
0,
1
],
"left": false,
"jump": false,
"time": 60,
"show": 30,
"font": "16px Verdana",
"speed": 1
}
]
},
"changeFloor": {},
"beforeBattle": {},

View File

@ -8941,7 +8941,7 @@ core.plugin.animate = {
if (one.jump) {
one.py -= dy;
}
if (one.left) {
if (!one.left) {
one.px += dx;
} else {
one.px -= dx;