1.优化标题界面

2.10层剧情的背景改了
3.13层优化:
(盗贼和蝙蝠同步移动)
(盗贼立绘位置往右20像素和RM一致)
(“跟我来”这句附近盗贼立绘消失修复)
(盗贼和主角移动隔了一个身位,跟随了一个透明行走图)
 (移动结束后位置不对修复)
(“好了,这里安全了”这句话逗号间隔不一样修复)
(“什么什么……你要送我出塔”这句话附近添加了一个黑屏)
(切换场景部分重做,隐藏状态栏并修改了立绘位置和大小)
4.ESC系统设置添加了“RM样式楼传”的按钮
5.游戏时间统计最大单位修改为小时
This commit is contained in:
爱的天使Erdnase 2022-12-10 08:12:38 +08:00
parent ad30bd4dda
commit 5dc6b1269e
18 changed files with 997 additions and 502 deletions

View File

@ -61,7 +61,7 @@
<div id='startButtonGroup'>
<div id='startButtons'>
<span class='startButton' id='playGame'>开始游戏</span>
<span class='startButton' id='loadGame'>载入游戏</span>
<span class='startButton' id='loadGame'>继续游戏</span>
<span class='startButton' id='replayGame'>录像回放</span>
</div>
<div id='levelChooseButtons'></div>

View File

@ -246,6 +246,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"B.png",
"FY.png",
"Title_starlong.png",
"airfollower.png",
"airwall.png",
"ancheating.png",
"aneasy.png",
@ -638,7 +639,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"zoneogg.mp3"
],
"fonts": [
"fzchyjw"
"fzchyjw",
"normalTitle"
],
"nameMap": {
"确定": "confirm.mp3",

View File

@ -229,6 +229,10 @@ main.floors.MT10=
}
],
"1,0": [
{
"type": "function",
"function": "function(){\ncore.canvas.bg.canvas.style.filter='saturate(100%)';\n}"
},
{
"type": "setValue",
"name": "flag:Memories_grayscale",

View File

@ -65,7 +65,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -106,7 +106,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -148,7 +148,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -183,14 +183,13 @@ main.floors.MT13=
{
"type": "move",
"loc": [
8,
9,
8
],
"time": 500,
"keep": true,
"steps": [
"right",
"right"
"right:1"
]
},
{
@ -206,7 +205,7 @@ main.floors.MT13=
"time": 500,
"keep": true,
"steps": [
"right"
"right:1"
]
},
{
@ -223,7 +222,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -234,7 +233,7 @@ main.floors.MT13=
"\t[杰克]融--墙--水---",
{
"type": "hideImage",
"code": 1,
"code": 2,
"time": 0
},
{
@ -311,7 +310,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -352,7 +351,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -397,7 +396,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -453,10 +452,8 @@ main.floors.MT13=
],
"time": 500,
"steps": [
"down",
"down",
"down",
"right"
"down:3",
"right:1"
]
},
{
@ -563,8 +560,9 @@ main.floors.MT13=
],
"time": 500,
"keep": true,
"async": true,
"steps": [
"left"
"left:1"
]
},
{
@ -575,10 +573,14 @@ main.floors.MT13=
],
"time": 500,
"keep": true,
"async": true,
"steps": [
"left"
"left:1"
]
},
{
"type": "waitAsync"
},
{
"type": "showImage2",
"code": 1,
@ -589,7 +591,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -617,14 +619,12 @@ main.floors.MT13=
6,
8
],
"time": 500,
"time": 50,
"keep": true,
"async": true,
"steps": [
"down",
"left",
"left",
"left",
"left"
"down:1",
"left:4"
]
},
{
@ -633,16 +633,18 @@ main.floors.MT13=
7,
8
],
"time": 500,
"time": 50,
"keep": true,
"async": true,
"steps": [
"left",
"down",
"left",
"left",
"left"
"left:1",
"down:1",
"left:3"
]
},
{
"type": "waitAsync"
},
{
"type": "showImage2",
"code": 1,
@ -653,7 +655,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -711,7 +713,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -760,7 +762,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -808,7 +810,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -853,7 +855,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -901,7 +903,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -945,7 +947,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -994,8 +996,7 @@ main.floors.MT13=
"time": 500,
"keep": true,
"steps": [
"up",
"up"
"up:2"
]
},
{
@ -1023,7 +1024,7 @@ main.floors.MT13=
"time": 500,
"keep": true,
"steps": [
"left"
"left:1"
]
},
{
@ -1044,7 +1045,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1067,11 +1068,6 @@ main.floors.MT13=
"time": 500
},
"\t[]救——命——啊—————!!!!(不知道管不管用)",
{
"type": "hideImage",
"code": 1,
"time": 0
},
{
"type": "animate",
"name": "gantanhao",
@ -1079,7 +1075,7 @@ main.floors.MT13=
},
{
"type": "showImage2",
"code": 1,
"code": 2,
"image": "shaohuyilv.png",
"sloc": [
0,
@ -1106,6 +1102,11 @@ main.floors.MT13=
"code": 1,
"time": 0
},
{
"type": "hideImage",
"code": 2,
"time": 0
},
{
"type": "setVolume",
"value": 100,
@ -1139,6 +1140,10 @@ main.floors.MT13=
"operator": "+=",
"value": "5"
},
{
"type": "follow",
"name": "airfollower.png"
},
{
"type": "follow",
"name": "xiaotou.png"
@ -1153,17 +1158,12 @@ main.floors.MT13=
"true": [
{
"type": "moveHero",
"time": 400,
"time": 100,
"steps": [
"down",
"right",
"right",
"right",
"right",
"up",
"right",
"right",
"right"
"down:1",
"right:4",
"up:1",
"right:4"
]
}
],
@ -1175,19 +1175,13 @@ main.floors.MT13=
"true": [
{
"type": "moveHero",
"time": 400,
"time": 100,
"steps": [
"right",
"right",
"down",
"down",
"down",
"right",
"right",
"up",
"right",
"right",
"right"
"right:2",
"down:3",
"right:2",
"up:1",
"right:4"
]
}
],
@ -1199,35 +1193,35 @@ main.floors.MT13=
"true": [
{
"type": "moveHero",
"time": 400,
"time": 100,
"steps": [
"right",
"down",
"down",
"right",
"right",
"up",
"right",
"right",
"right"
"right:1",
"down:2",
"right:2",
"up:1",
"right:4"
]
}
],
"false": []
},
{
"type": "unfollow",
"name": "airfollower.png"
},
{
"type": "unfollow",
"name": "xiaotou.png"
},
{
"type": "setBlock",
"number": "123",
"type": "hide",
"loc": [
[
8,
8
]
]
],
"remove": true
},
{
"type": "function",
@ -1254,7 +1248,7 @@ main.floors.MT13=
},
{
"type": "showImage2",
"code": 1,
"code": 2,
"image": "jiekedajiao2.png",
"sloc": [
0,
@ -1262,7 +1256,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1304,6 +1298,10 @@ main.floors.MT13=
"type": "sleep",
"time": 1000
},
{
"type": "follow",
"name": "airfollower.png"
},
{
"type": "follow",
"name": "xiaotou.png"
@ -1318,17 +1316,12 @@ main.floors.MT13=
"true": [
{
"type": "moveHero",
"time": 400,
"time": 100,
"steps": [
"down",
"right",
"right",
"right",
"right",
"up",
"right",
"right",
"right"
"down:1",
"right:4",
"up:1",
"right:4"
]
}
],
@ -1340,19 +1333,13 @@ main.floors.MT13=
"true": [
{
"type": "moveHero",
"time": 400,
"time": 100,
"steps": [
"right",
"right",
"down",
"down",
"down",
"right",
"right",
"up",
"right",
"right",
"right"
"right:2",
"down:3",
"right:2",
"up:1",
"right:4"
]
}
],
@ -1364,22 +1351,22 @@ main.floors.MT13=
"true": [
{
"type": "moveHero",
"time": 400,
"time": 100,
"steps": [
"right",
"down",
"down",
"right",
"right",
"up",
"right",
"right",
"right"
"right:1",
"down:2",
"right:2",
"up:1",
"right:4"
]
}
],
"false": []
},
{
"type": "unfollow",
"name": "airfollower.png"
},
{
"type": "unfollow",
"name": "xiaotou.png"
@ -1404,6 +1391,18 @@ main.floors.MT13=
]
]
},
{
"type": "move",
"loc": [
8,
8
],
"time": 100,
"keep": true,
"steps": [
"right:1"
]
},
{
"type": "function",
"function": "function(){\ncore.status.hero.loc.direction=\"left\";\ncore.drawHero();\n}"
@ -1430,7 +1429,7 @@ main.floors.MT13=
"type": "sleep",
"time": 500
},
"\t[邵虎]好了,这里安全了。",
"\t[邵虎]好了这里安全了。",
{
"type": "showImage2",
"code": 2,
@ -1441,7 +1440,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1496,7 +1495,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1538,7 +1537,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1626,7 +1625,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1665,7 +1664,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1706,7 +1705,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1796,7 +1795,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1833,7 +1832,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1875,7 +1874,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1916,7 +1915,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1924,10 +1923,49 @@ main.floors.MT13=
"opacity": 1,
"time": 0
},
{
"type": "hideImage",
"code": 1,
"time": 0
},
{
"type": "hideImage",
"code": 2,
"time": 0
},
{
"type": "sleep",
"time": 1000
},
{
"type": "screenFlash",
"color": [
0,
0,
0,
1
],
"time": 500,
"times": 1
},
{
"type": "showImage2",
"code": 2,
"image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
},
"\t[杰克]什么什么......你要送我出塔!?",
{
"type": "showImage2",
@ -1957,7 +1995,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -1998,7 +2036,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -2040,7 +2078,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -2090,7 +2128,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -2131,7 +2169,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"
@ -2172,7 +2210,7 @@ main.floors.MT13=
null
],
"loc": [
330,
350,
70,
"289.6",
"376.8"

View File

@ -18,6 +18,10 @@ main.floors.huxiao1=
"firstArrive": [],
"events": {
"1,0": [
{
"type": "function",
"function": "function(){\ncore.canvas.bg.canvas.style.filter='saturate(25%)';\n}"
},
{
"type": "showImage2",
"code": 1,

View File

@ -20,6 +20,14 @@ main.floors.jieke1=
"firstArrive": [],
"events": {
"1,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"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": "setCurtain",
"time": 500
@ -29,12 +37,19 @@ main.floors.jieke1=
"time": 1000
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -51,12 +66,19 @@ main.floors.jieke1=
"\t[杰克]说起来这个小村落已经有些年头了,而且距离皇城也不是很远。",
"\t[杰克]大致位置嘛.......大概就是皇城和天塔中间左右。",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
@ -109,34 +131,51 @@ main.floors.jieke1=
}
],
"2,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"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": "setCurtain",
"keep": true,
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohusikao.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -181,14 +220,14 @@ main.floors.jieke1=
},
{
"type": "setCurtain",
"keep": true,
"color": [
0,
0,
0,
1
],
"time": 500
"time": 500,
"keep": true
},
{
"type": "changeFloor",

View File

@ -20,34 +20,51 @@ main.floors.jieke2=
"firstArrive": [],
"events": {
"1,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"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['27-1.png'], 0, 0);\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t}\n}, per_time);\n}"
},
{
"type": "setCurtain",
"keep": true,
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekexiaohei.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuyilv.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -57,28 +74,38 @@ main.floors.jieke2=
},
"\t[杰克]老大不愧是老大~~这都知道。",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekexiaohei.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuyilv.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -93,28 +120,38 @@ main.floors.jieke2=
},
"\t[杰克]因为大多数天枢城里的居民都不知道这个地方。",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohusikao.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -134,28 +171,38 @@ main.floors.jieke2=
},
"\t[杰克]..........但后来镇天谷发生了一件事。",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -165,28 +212,38 @@ main.floors.jieke2=
},
"\t[邵虎]你是说两年前的那件事吧..........",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekeyilv.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -196,28 +253,38 @@ main.floors.jieke2=
},
"\t[杰克]看来老大知道的还不少啊。",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -242,14 +309,14 @@ main.floors.jieke2=
},
{
"type": "setCurtain",
"keep": true,
"color": [
0,
0,
0,
1
],
"time": 500
"time": 500,
"keep": true
},
{
"type": "changeFloor",

View File

@ -20,34 +20,51 @@ main.floors.jieke3=
"firstArrive": [],
"events": {
"1,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"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['xueguang.jpg'], 0, 0);\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t}\n}, per_time);\n}"
},
{
"type": "setCurtain",
"keep": true,
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekedajiao.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -57,28 +74,38 @@ main.floors.jieke3=
},
"\t[杰克]当身着天枢禁卫军的部队杀入村中时,村子里的人大都还不知道发生了什么",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekedajiao2.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -88,28 +115,38 @@ main.floors.jieke3=
},
"\t[杰克]那些军人喊着【杀死反贼】,就这样杀进了村子",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -124,28 +161,38 @@ main.floors.jieke3=
},
"\t[杰克]很少有人能够在这场灾难中活下来。",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekexiaohei.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuziya.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -160,28 +207,38 @@ main.floors.jieke3=
},
"\t[杰克]他说:“如果想保护自己的家人,保卫自己的家园,就加入我们镇天联盟吧。”",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuyilv.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekexiaohei.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -191,28 +248,38 @@ main.floors.jieke3=
},
"\t[邵虎].....................!!!!",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuyilv.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -231,28 +298,38 @@ main.floors.jieke3=
"time": 1000
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohusikao.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -282,14 +359,14 @@ main.floors.jieke3=
},
{
"type": "setCurtain",
"keep": true,
"color": [
0,
0,
0,
1
],
"time": 500
"time": 500,
"keep": true
},
{
"type": "changeFloor",

View File

@ -20,34 +20,51 @@ main.floors.jieke4=
"firstArrive": [],
"events": {
"1,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"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['yueya.jpg'], 0, 0);\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t}\n}, per_time);\n}"
},
{
"type": "setCurtain",
"keep": true,
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekezixin.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -62,28 +79,38 @@ main.floors.jieke4=
},
"\t[杰克]老大ー定很好奇天塔是什么吧。",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekedajiao.png",
"loc": [
200,
40
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -108,14 +135,14 @@ main.floors.jieke4=
},
{
"type": "setCurtain",
"keep": true,
"color": [
0,
0,
0,
1
],
"time": 500
"time": 500,
"keep": true
},
{
"type": "changeFloor",

View File

@ -20,28 +20,50 @@ main.floors.jieke5=
"firstArrive": [],
"events": {
"1,0": [
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0,0,core.dom.whole.width,core.dom.whole.height)\n}"
},
{
"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['heiyun.jpg'], 0, 0);\n\tif (step == steps) {\n\t\tclearInterval(animate);\n\t}\n}, per_time);\n}"
},
{
"type": "setCurtain",
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -72,23 +94,37 @@ main.floors.jieke5=
},
"\t[邵虎]...............",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -99,23 +135,37 @@ main.floors.jieke5=
},
"\t[杰克]我本来以为天塔只是个工作区",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekedajiao2.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -126,23 +176,37 @@ main.floors.jieke5=
},
"\t[杰克]但没想到这里面竟然是这个样子...........",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekedajiao2.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -157,23 +221,37 @@ main.floors.jieke5=
"time": 1000
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuzixin.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekedajiao2.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -184,23 +262,37 @@ main.floors.jieke5=
},
"\t[邵虎]原来如此,你进天塔的目的,就是找到你的父亲,我说的没错吧?",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuzixin.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -225,23 +317,37 @@ main.floors.jieke5=
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohujinzhang.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -261,46 +367,74 @@ main.floors.jieke5=
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
},
"\t[邵虎]..........",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -311,23 +445,37 @@ main.floors.jieke5=
},
"\t[邵虎]我还有几个小问题。",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -382,23 +530,37 @@ main.floors.jieke5=
"\t[杰克]老、老大请说.........",
"\t[邵虎]既然你一直呆在联盟基层,那你知不知道公主的事?",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -417,23 +579,37 @@ main.floors.jieke5=
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohuyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -445,23 +621,37 @@ main.floors.jieke5=
"time": 500
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
-30,
20
80,
50,
"291.2",
"466.4"
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "jiekeyilv.png",
"sloc": [
0,
0,
null
],
"loc": [
200,
40
350,
70,
"289.6",
"376.8"
],
"opacity": 1,
"time": 0
@ -496,9 +686,10 @@ main.floors.jieke5=
"type": "changeFloor",
"floorId": "MT13",
"loc": [
9,
10,
8
],
"direction": "left",
"time": 0
},
{

Binary file not shown.

View File

@ -1714,7 +1714,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
fill('游戏时间', 20, 330, '#c0e0ff');
fill('步数', 20, 425, '#c0e0ff');
ctx.textAlign = 'right';
var hour = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60)) % 24,
var hour = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60)),
minutes = Math.floor(core.animateFrame.totalTime / (1000 * 60)) % 60,
seconds = Math.floor(core.animateFrame.totalTime / 1000) % 60,
day = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60 * 24)),
@ -1722,10 +1722,10 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
hour = hour < 10 ? '0' + hour : hour;
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
if (day >= 1)
fill(day + ':' + hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff");
else
fill(hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff");
//if (day >= 1)
// fill(day + ':' + hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff");
//else
fill(hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff");
fill(step, 140, 455, '#ffffff');
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -8,6 +8,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
window.screen.orientation.lock("landscape-primary");
} catch (e) {}
core.dom.playGame.setAttribute('selected', true); ////游戏第一次打开进入到标题界面时要将光标设置为到playGame
core.control.hideStatusBar();
core.control.resize = function () {
if (main.mode == 'editor') return;
@ -19,7 +21,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
var horizontalMaxRatio = (clientHeight - 2 * BORDER - (extendToolbar ? BORDER : 0)) / (core._PY_ + (extendToolbar ? 38 : 0));
//////强制横屏插件
////////
// 横屏
@ -454,10 +459,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
return config;
}
core.ui._drawSettings = function () {
core.status.event.id = 'settings';
this.drawChoices(null, [
"系统设置", "虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏", "数值显示: " + (core.getFlag("itemDetail") ? "[ON]" : "[OFF]")
"系统设置", "虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏", "数值显示: " + (core.getFlag("itemDetail") ? "[ON]" : "[OFF]"), "RM样式楼传 " + (core.getFlag("isRmFly") ? "[ON]" : "[OFF]")
]);
}
core.actions._clickSettings = function (x, y) {
@ -509,6 +515,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.getItemDetail();
core.ui.closePanel();
break;
case 9:
core.playSound('确定');
core.setFlag("isRmFly", !core.getFlag("isRmFly"));
core.ui.closePanel();
break;
}
}
return;
@ -616,67 +627,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
//core.strokeRect('ui', 22, border_top, 42, 42, '#DDDDDD', 2); //删除怪物边框
var blockInfo = core.getBlockInfo(enemy.id);
core.drawIcon('ui', enemy.id, 22 + 5, border_top + 5, 32, 32) ///取消用动画的绘制,改用图标绘制
/*
// 检查大怪物
if (blockInfo.bigImage) {
core.status.boxAnimateObjs.push({
bigImage: blockInfo.bigImage,
face: blockInfo.face,
centerX: border_left + 21,
centerY: border_top + 21,
max_width: 60
});
} else if (blockInfo.height >= 42) {
var originEnemy = core.material.enemys[enemy.id] || {};
// 检查上半部分是不是纯透明的;取用原始值避免重复计算
if (originEnemy.is32x32 == null) {
originEnemy.is32x32 = this._drawBook_is32x32(blockInfo);
}
if (originEnemy.is32x32) {
core.status.boxAnimateObjs.push({
'bgx': border_left,
'bgy': border_top,
'bgWidth': 42,
'bgHeight': 42,
'x': img_left,
'y': img_top,
'height': 32,
'animate': blockInfo.animate,
'image': blockInfo.image,
'pos': blockInfo.posY * blockInfo.height + blockInfo.height - 32
});
} else {
var drawWidth = 42 * 32 / blockInfo.height;
core.status.boxAnimateObjs.push({
'bgx': border_left,
'bgy': border_top,
'bgWidth': 42,
'bgHeight': 42,
'x': img_left - 5 + (42 - drawWidth) / 2,
'y': img_top - 5,
'dw': drawWidth,
'dh': 42,
'height': blockInfo.height,
'animate': blockInfo.animate,
'image': blockInfo.image,
'pos': blockInfo.posY * blockInfo.height
});
}
} else {
core.status.boxAnimateObjs.push({
'bgx': border_left,
'bgy': border_top,
'bgWidth': 42,
'bgHeight': 42,
'x': img_left,
'y': img_top,
'height': 32,
'animate': blockInfo.animate,
'image': blockInfo.image,
'pos': blockInfo.posY * blockInfo.height
});
}
*/
}
ui.prototype._drawBook_drawName = function (index, enemy, top, left, width) {
@ -849,6 +800,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.clearMap('bookBg'); ////清空手册Bg
core.clearMap('itemBg'); ////清空道具栏Bg
core.clearMap('flyThumbnail'); ////清空fly略缩图
core.clearUIEventSelector(1); ////清除绘制的光标
core.clearUIEventSelector(2);
if (core.status.hero && core.status.hero.flags) {
@ -965,6 +917,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
core.ui.drawFly = function (page) {
core.status.event.data = page;
var floorId = core.floorIds[page];
var title = core.status.maps[floorId].title;
@ -1002,6 +955,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
var size = 0.75;
core.strokeRect('ui', 16, 64, size * core._PX_, size * core._PY_, '#FFFFFF', 2);
core.drawThumbnail(floorId, null, { ctx: 'ui', x: 16, y: 64, size: size, damage: true, all: true });
}
},
"drawLight": function () {
@ -3443,5 +3398,87 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}, time / 256);
core.animateFrame.asyncId[animate] = true;
}
},
"标题界面监听按钮": function () {
// 在此增加新插件
//////用于监听标题界面的键盘操作和鼠标移动操作,然后高亮显示当前选择的光标
if (main.replayChecking) return; ////录像过程中
if (core.status.played) return; ////游戏开始后
var i = 1;
if (core.dom.playGame.getAttribute('selected'))
i = 1; ////第一项,开始游戏
else if (core.dom.loadGame.getAttribute('selected'))
i = 2; ////第二项,继续游戏
else if (core.dom.replayGame.getAttribute('selected'))
i = 3; /////第三项,录像回放
////当鼠标离开某个选项
document.getElementById("playGame").addEventListener("mouseleave", function () {
core.dom.playGame.setAttribute('selected', true);
core.dom.loadGame.setAttribute('selected', false);
core.dom.replayGame.setAttribute('selected', false);
i = 1;
});
document.getElementById("loadGame").addEventListener("mouseleave", function () {
core.dom.loadGame.setAttribute('selected', true);
core.dom.playGame.setAttribute('selected', false);
core.dom.replayGame.setAttribute('selected', false);
i = 2;
});
document.getElementById("replayGame").addEventListener("mouseleave", function () {
core.dom.replayGame.setAttribute('selected', true);
core.dom.playGame.setAttribute('selected', false);
core.dom.loadGame.setAttribute('selected', false);
i = 3;
});
////当鼠标移动到某个选项
document.getElementById("playGame").addEventListener("mouseenter", function () {
core.dom.playGame.setAttribute('selected', true);
core.dom.loadGame.setAttribute('selected', false);
core.dom.replayGame.setAttribute('selected', false);
i = 1;
});
document.getElementById("loadGame").addEventListener("mouseenter", function () {
core.dom.loadGame.setAttribute('selected', true);
core.dom.playGame.setAttribute('selected', false);
core.dom.replayGame.setAttribute('selected', false);
i = 2;
});
document.getElementById("loadGame").addEventListener("click", function () {
core.dom.playGame.setAttribute('selected', true);
core.dom.loadGame.setAttribute('selected', false);
core.dom.replayGame.setAttribute('selected', false);
i = 1;
});
document.getElementById("replayGame").addEventListener("mouseenter", function () {
core.dom.replayGame.setAttribute('selected', true);
core.dom.playGame.setAttribute('selected', false);
core.dom.loadGame.setAttribute('selected', false);
i = 3;
});
/////按键操作
document.body.addEventListener('keyup', e => {
if (e.keyCode === 38) {
i = (i - 1) || 3; // 上。。。
} else if (e.keyCode === 40) {
i = (i + 1) % 4 || 1; // 下。。。
} else if (i !== 3 && (e.keyCode === 32 || e.keyCode === 13 || e.keyCode === 67)) {
i = 1; /////确认键,且不是录像回放
}
core.dom.playGame.setAttribute('selected', false);
core.dom.loadGame.setAttribute('selected', false);
core.dom.replayGame.setAttribute('selected', false);
if (i === 1)
core.dom.playGame.setAttribute('selected', true);
else if (i === 2)
core.dom.loadGame.setAttribute('selected', true);
else if (i === 3)
core.dom.replayGame.setAttribute('selected', true);
})
}
}

View File

@ -122,11 +122,11 @@ html, body {
width: auto;
position: absolute;
text-align: center;
font-size: 1.4em;
font-size: 1.44em;
display: none;
z-index: 310;
bottom: 0;
margin-bottom: 5%;
margin-bottom: 9%;
left: 80%;
transform: translateX(-50%);
padding: 15px 25px;
@ -138,7 +138,7 @@ html, body {
border: #FFFFFF 2px solid;
caret-color: #FFD700;
border-radius: 10px;
font-family: fzchyjw;
font-family: normalTitle;
background: none !important;
border: none !important;
}
@ -147,35 +147,44 @@ html, body {
display: block;
color: #616161;
}
#playGame[selected='true'] { color: #bababa; }
#loadGame[selected='true'] { color: #bababa; }
#replayGame[selected='true'] { color: #bababa; }
#playGame:hover {
color: #ffffff;
}
#loadGame:hover {
color: #ffffff;
}
#replayGame:hover {
color: #ffffff;
}
}
#levelChooseButtons {
display: none;
display: none;display: block;
color: #616161;
}
.startButton {
width: 100%;
margin: 0;
font-weight: bold;
display: block;
cursor: pointer;
padding: 2px 0;
padding: 9px 0;
border-color: transparent;
border-width: 0px 0px 0px 5px;
border-width: 0px 0px 0px 0px;
border-style: solid;
border-radius: 0px;
}
.onChoiceAnimate {
animation: onChoice 2s ease-in-out 0s infinite normal none running;
}