tianta/project/floors/QISHI.js
Erdnase 0f35465f08 优化了部分剧情效果
修复了三个报错:标题动画插件报错(两个),强制横屏PC报错
优化了跳过剧情插件,增加闪烁效果(并行脚本),防止部分异步剧情出错,整合了一次性打开/关闭跳过剧情开关、图片提示
难度选择时增加颜色区分
2023-01-01 19:40:11 +08:00

491 lines
20 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

main.floors.QISHI=
{
"floorId": "QISHI",
"title": "野外",
"name": "野外",
"canFlyTo": false,
"canUseQuickShop": true,
"cannotViewMap": true,
"images": [],
"item_ratio": 1,
"firstArrive": [],
"events": {
"7,7": null,
"1,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"type": "playBgm",
"name": "mianmian.mp3",
"keep": true
},
{
"type": "setText",
"position": "center",
"background": [
0,
0,
0,
0
],
"time": 20
},
{
"type": "sleep",
"time": 2000,
"noSkip": true
},
"公、公主殿下!!",
{
"type": "sleep",
"time": 2000,
"noSkip": true
},
"...呼...呼........",
{
"type": "sleep",
"time": 2000,
"noSkip": true
},
"公主殿下......您等等我......",
{
"type": "sleep",
"time": 2000,
"noSkip": true
},
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\tcore.dom.wholeCtx.globalAlpha = 1;\n\tcore.dom.wholeCtx.fillRect(0, 0, core.dom.whole.width, core.dom.whole.height);\n\tcore.dom.wholeCtx.globalAlpha = step / steps;\n\tcore.drawImage(core.dom.wholeCtx, core.material.images.images['yinyuecun.jpg'], 0, 0);\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500,
"noSkip": true
},
{
"type": "setText",
"position": "center",
"title": [
255,
255,
255,
1
],
"text": [
255,
0,
244,
1
],
"background": "winskin.png",
"time": 20
},
"\\c[25]怎、怎么又是你邵护卫!烦死啦你!",
{
"type": "setText",
"position": "down",
"text": [
255,
255,
255,
1
],
"background": "winskin.png",
"time": 20
},
{
"type": "showImage2",
"code": 1,
"image": "gongzhuzhending.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]一天到晚总是跟着我!烦不烦啊你!",
{
"type": "showImage2",
"code": 2,
"image": "shaohuzixin.png",
"sloc": [
0,
0,
null
],
"loc": [
0,
50,
291,
466
],
"opacity": 1,
"time": 500
},
"\t[邵虎]公主下请不要再任性了。你看看你都跑多远了。",
"\t[公主]不用你管。",
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\timage101.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\timage102.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\twhole.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t\timage101.style.filter = 'saturate(0%)'\n\t\timage102.style.filter = 'saturate(0%)'\n\t\twhole.style.filter = 'saturate(0%)'\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500
},
{
"type": "setText",
"position": "center",
"background": "winskin.png",
"time": 20
},
"我叫邵虎。是天枢帝国萧涵公主的亲卫队长。",
"身居要职,我的唯一职责就是保护公主殿下的安全",
"但公主殿下偏偏是个不让人省心的主。",
"而今天,公主殿下又吵嚷着要去城外的天塔观光。",
"据说天塔是一百年前天枢与邻国的圣战争夺之后,天枢皇帝为了纪念战争的胜利而修建。",
"时隔多年,天塔已经成为了妖兽以及魔怪的栖息地",
"但是令人不解的是,魔怪只栖息在塔的内部,却没有魔怪外出伤人的事例。",
"但毕竟是魔怪的栖息地,由于担心公主会出现危险,我极力反对公主这次出行。",
"可是在我的极力劝阻之下,公主却自己一个人跑出了皇城。",
{
"type": "setText",
"position": "down",
"background": "winskin.png",
"time": 20
},
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\timage101.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\timage102.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\twhole.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t\timage101.style.filter = 'saturate(100%)'\n\t\timage102.style.filter = 'saturate(100%)'\n\t\twhole.style.filter = ''\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500
},
"\t[邵虎]公主殿下快回去吧,要是在半路迷路了怎么办?",
{
"type": "showImage2",
"code": 1,
"image": "gongzhuheihua.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]烦死了烦死了烦死了~~~~~~",
"\t[公主]邵护卫你有完没完!!!!",
"\t[公主]本公主就是要出来!!!!你能把我怎么着吧!!",
"\t[公主]你就是要跟我对着干!!!就是跟我唱反调!!!我告诉你!!跟我对着干的人都没有好下场!!没有没有没有!!!!!",
{
"type": "showImage2",
"code": 2,
"image": "shaohujinzhang.png",
"sloc": [
0,
0,
null
],
"loc": [
0,
50,
291,
466
],
"opacity": 1,
"time": 500
},
"\t[邵虎]公主殿下您别生气....我没有要和您做对的意思..",
"\t[公主]那你是什么?你是什么!!",
"\t[邵虎]公主殿下消消气......要不......您跟紧我,我带你去天塔附近看一看好吗......至于上天塔里面玩什么的.....太危险了......",
{
"type": "showImage2",
"code": 1,
"image": "gongzhuxiao.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]这可是你说的~~~!不许反悔了!~",
{
"type": "showImage2",
"code": 2,
"image": "shaohuxiao.png",
"sloc": [
0,
0,
null
],
"loc": [
0,
50,
291,
466
],
"opacity": 1,
"time": 500
},
"\t[邵虎]你开心就好......那我们走吧......",
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\timage101.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\timage102.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\twhole.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t\timage101.style.filter = 'saturate(0%)'\n\t\timage102.style.filter = 'saturate(0%)'\n\t\twhole.style.filter = 'saturate(0%)'\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500
},
{
"type": "setText",
"position": "center",
"background": "winskin.png",
"time": 20
},
"这就是那个任性的公主。",
"也是那个开朗的笑容能让平常冷漠的自己也开心的笑起来的公主。",
"是我每天都要保护的人。",
"也是我日日夜夜都想要打心里惦记的人。",
"只是她恋慕的心早已经有了明确的指向......",
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\timage101.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\timage102.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\twhole.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t\timage101.style.filter = 'saturate(100%)'\n\t\timage102.style.filter = 'saturate(100%)'\n\t\twhole.style.filter = ''\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500
},
{
"type": "setText",
"position": "down",
"background": "winskin.png",
"time": 20
},
{
"type": "showImage2",
"code": 1,
"image": "gongzhupinghe.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]对了对了,汪护卫呢?不是应该跟你在一起吗?",
{
"type": "showImage2",
"code": 2,
"image": "shaohuzixin.png",
"sloc": [
0,
0,
null
],
"loc": [
0,
50,
291,
466
],
"opacity": 1,
"time": 500
},
"\t[邵虎]他......和我分头来找你,大概就在附近吧。",
{
"type": "showImage2",
"code": 1,
"image": "gongzhuzhending.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]怎么不是汪大哥先来找到我呢......唉,真讨厌..",
"\t[邵虎].............",
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\timage101.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\timage102.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\twhole.style.filter = 'saturate(' + (100 - 100 * step / steps) + '%)'\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t\timage101.style.filter = 'saturate(0%)'\n\t\timage102.style.filter = 'saturate(0%)'\n\t\twhole.style.filter = 'saturate(0%)'\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500
},
{
"type": "setText",
"position": "center",
"background": "winskin.png",
"time": 20
},
"汪洋,我的剑术老师,我的大哥,我最好的兄弟。",
"他比我有风度,比我武功高,比我人缘好。我敬佩他,他很完美,让人感到无法超越。",
"他曾经有过一段恋情,和我相依为命的姐姐。",
{
"type": "function",
"function": "function(){\nvar time = 500;\ntime /= Math.max(core.status.replay.speed, 1)\nvar per_time = 50,\n\tstep = 0,\n\tsteps = parseInt(time / per_time);\nvar animate = core.isReplaying() ? 0 : setInterval(function () {\n\tstep++;\n\timage101.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\timage102.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\twhole.style.filter = 'saturate(' + (100 * step / steps) + '%)'\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t\timage101.style.filter = 'saturate(100%)'\n\t\timage102.style.filter = 'saturate(100%)'\n\t\twhole.style.filter = ''\n\t}\n}, per_time);\n}"
},
{
"type": "sleep",
"time": 500
},
{
"type": "setText",
"position": "down",
"background": "winskin.png",
"time": 20
},
"\t[公主]话说前面是一个村子了呢......没听说过这附近有村子啊......",
"\t[公主]喂、、姓邵的,你知不知道这里是哪啊?",
"\t[邵虎]这里是镇天谷,是汪大哥的家乡。",
{
"type": "showImage2",
"code": 1,
"image": "gongzhujiao.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]诶诶!!??",
"\t[公主]汪大哥...啊不...汪护卫是出身在这里的么!",
"\t[公主]我竟然完全都不知道啊......",
{
"type": "showImage2",
"code": 1,
"image": "gongzhupinghe.png",
"sloc": [
0,
0,
null
],
"loc": [
330,
90,
319,
390
],
"opacity": 1,
"time": 500
},
"\t[公主]好吧~~~~那我们就去汪护卫的家乡看一看好了~~",
"\t[邵虎]诶.~~~~~诶!!?",
"\t[邵虎](也好,这里肯定是比天塔安全得多......",
"\t[邵虎]那我们走吧公主殿下,会碰上汪大哥也说不定。",
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"type": "hideImage",
"code": 1,
"time": 0
},
{
"type": "hideImage",
"code": 2,
"time": 0
},
{
"type": "changeFloor",
"floorId": "MUDI",
"loc": [
0,
0
],
"time": 0
},
{
"type": "trigger",
"loc": [
1,
0
]
}
]
},
"changeFloor": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"ratio": 1,
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"color": null,
"bgmap": [
],
"fgmap": [
],
"width": 15,
"height": 15,
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {}
}