Compare commits

..

No commits in common. "c36c1373549d286ad651d9155d4992e2fa265765" and "1e199445a0c5484ef0dc9a898826b7204482dd9e" have entirely different histories.

18 changed files with 472 additions and 1112 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,7 +246,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"B.png",
"FY.png",
"Title_starlong.png",
"airfollower.png",
"airwall.png",
"ancheating.png",
"aneasy.png",
@ -639,8 +638,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"zoneogg.mp3"
],
"fonts": [
"fzchyjw",
"normalTitle"
"fzchyjw"
],
"nameMap": {
"确定": "confirm.mp3",

View File

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

View File

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

View File

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

View File

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

View File

@ -20,51 +20,34 @@ 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": "showImage2",
"type": "showImage",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
-30,
20
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage2",
"type": "showImage",
"code": 2,
"image": "jiekezixin.png",
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
200,
40
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -79,38 +62,28 @@ main.floors.jieke4=
},
"\t[杰克]老大ー定很好奇天塔是什么吧。",
{
"type": "showImage2",
"type": "showImage",
"code": 1,
"image": "shaohusikao.png",
"sloc": [
0,
0,
null
],
"loc": [
80,
50,
"291.2",
"466.4"
-30,
20
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
{
"type": "showImage2",
"type": "showImage",
"code": 2,
"image": "jiekedajiao.png",
"sloc": [
0,
0,
null
],
"loc": [
350,
70,
"289.6",
"376.8"
200,
40
],
"dw": 100,
"dh": 100,
"opacity": 1,
"time": 0
},
@ -135,14 +108,14 @@ main.floors.jieke4=
},
{
"type": "setCurtain",
"keep": true,
"color": [
0,
0,
0,
1
],
"time": 500,
"keep": true
"time": 500
},
{
"type": "changeFloor",

View File

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

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -8,8 +8,6 @@ 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;
@ -21,10 +19,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
var horizontalMaxRatio = (clientHeight - 2 * BORDER - (extendToolbar ? BORDER : 0)) / (core._PY_ + (extendToolbar ? 38 : 0));
//////强制横屏插件
////////
// 横屏
@ -459,11 +454,10 @@ 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]"), "RM样式楼传 " + (core.getFlag("isRmFly") ? "[ON]" : "[OFF]")
"系统设置", "虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏", "数值显示: " + (core.getFlag("itemDetail") ? "[ON]" : "[OFF]")
]);
}
core.actions._clickSettings = function (x, y) {
@ -515,11 +509,6 @@ 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;
@ -627,7 +616,67 @@ 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) {
@ -800,7 +849,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.clearMap('bookBg'); ////清空手册Bg
core.clearMap('itemBg'); ////清空道具栏Bg
core.clearMap('flyText'); ////清空fly对话框
core.clearUIEventSelector(1); ////清除绘制的光标
core.clearUIEventSelector(2);
if (core.status.hero && core.status.hero.flags) {
@ -916,8 +964,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
}
/*core.ui.drawFly = function (page) {/////已在别处仿RM楼传复写
core.ui.drawFly = function (page) {
core.status.event.data = page;
var floorId = core.floorIds[page];
var title = core.status.maps[floorId].title;
@ -955,9 +1002,7 @@ 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 () {
@ -3398,232 +3443,5 @@ 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);
})
},
"仿RM楼传": function () {
// 在此增加新插件
core.ui.drawFly = function (page) {
if (!core.getFlag("isRmFly")) {
///////H5版楼传
core.status.event.data = page;
var floorId = core.floorIds[page];
var title = core.status.maps[floorId].title;
core.clearMap('ui');
core.setAlpha('ui', 0.85);
core.fillRect('ui', 0, 0, core._PX_, core._PY_, '#000000');
core.setAlpha('ui', 1);
core.setTextAlign('ui', 'center');
core.fillText('ui', '楼层跳跃', core._PX_ / 2, 48, '#FFFFFF', this._buildFont(28, true));
core.fillText('ui', '返回游戏', core._PX_ / 2, core._PY_ - 13, null, this._buildFont(15, true))
core.setTextAlign('ui', 'right');
core.fillText('ui', '浏览地图时也', core._PX_ - 10, core._PY_ - 23, '#aaaaaa', this._buildFont(10, false));
core.fillText('ui', '可楼层跳跃!', core._PX_ - 10, core._PY_ - 11, null, this._buildFont(10, false));
core.setTextAlign('ui', 'center');
var middle = core._PY_ / 2 + 39;
// 换行
var lines = core.splitLines('ui', title, 120, this._buildFont(19, true));
var start_y = middle - (lines.length - 1) * 11;
for (var i in lines) {
core.fillText('ui', lines[i], core._PX_ - 53, start_y, '#FFFFFF', this._buildFont(17, true));
start_y += 22;
}
if (core.actions._getNextFlyFloor(1) != page) {
core.fillText('ui', '▲', core._PX_ - 60, middle - 64, null, this._buildFont(17, false));
core.fillText('ui', '▲', core._PX_ - 60, middle - 96);
core.fillText('ui', '▲', core._PX_ - 60, middle - 96 - 7);
}
if (core.actions._getNextFlyFloor(-1) != page) {
core.fillText('ui', '▼', core._PX_ - 60, middle + 64, null, this._buildFont(17, false));
core.fillText('ui', '▼', core._PX_ - 60, middle + 96);
core.fillText('ui', '▼', core._PX_ - 60, middle + 96 + 7);
}
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 });
} else {
//////RM版楼传
core.status.event.data = page;
var floorId = core.floorIds[page];
var title = core.status.maps[floorId].title;
var maxFloorId = 81;
var minFloorId = 49;
if (core.status.played) {
if (!core.status.thisMap.underGround)
while (core.hasVisitedFloor('MT' + maxFloorId) === false && maxFloorId >= 0) {
maxFloorId--
}
else
while (core.hasVisitedFloor('UT' + minFloorId) === false && minFloorId >= 1) {
minFloorId--
}
}
core.clearMap('ui');
core.createCanvas('flyText', 0, 0, 480, 480, 141);
core.setOpacity("flyText", 0.7);
core.drawThumbnail(floorId, null, { ctx: 'ui', x: 0, y: 0, size: 1, damage: true, all: true });
core.drawWindowSkin('winskin2.png', 'flyText', 0, 304, core._PX_ - 10, 160);
core.setTextAlign('flyText', 'left');
if (!core.status.thisMap.underGround)
core.fillText('flyText', '请输入您要去的楼层(0' + maxFloorId + '):', 20, 304 + 40, '#FFFFFF', this._buildFont(22, false));
else {
core.fillText('flyText', '请输入您要去的', 20, 304 + 40, '#FFFFFF', this._buildFont(22, false));
core.fillText('flyText', '地下楼层', 20 + 154, 304 + 40, '#aaaaaa', this._buildFont(22, false));
core.fillText('flyText', '(1' + minFloorId + '):', 20 + 242, 304 + 40, '#FFFFFF', this._buildFont(22, false));
}
core.fillText('flyText', title, 20, 304 + 72, '#FFFFFF', this._buildFont(22, false));
core.setTextAlign('ui', 'right');
core.fillText('ui', '浏览地图时也', core._PX_ - 10, core._PY_ - 23, '#aaaaaa', this._buildFont(10, false));
core.fillText('ui', '可楼层跳跃!', core._PX_ - 10, core._PY_ - 11, null, this._buildFont(10, false));
core.setTextAlign('flyText', 'center');
var middle = core._PY_ / 2 + 39;
if (core.actions._getNextFlyFloor(1) != page) {
core.fillText('flyText', '▲', core._PX_ - 112, middle + 64, null, this._buildFont(24, false));
core.fillText('flyText', '◀', core._PX_ - 144, middle + 96);
}
if (core.actions._getNextFlyFloor(-1) != page) {
core.fillText('flyText', '▼', core._PX_ - 112, middle + 128, null, this._buildFont(24, false));
core.fillText('flyText', '▶', core._PX_ - 80, middle + 96);
}
}
}
////// 楼层传送器界面时的点击操作 //////
actions.prototype._clickFly = function (x, y) {
if (!core.getFlag("isRmFly")) { ///H5版
if ((x == core._WIDTH_ - 2 || x == core._WIDTH_ - 3) && y == this._HY_ + 3) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(-1));
}
if ((x == core._WIDTH_ - 2 || x == core._WIDTH_ - 3) && y == this._HY_ - 1) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(1));
}
if ((x == core._WIDTH_ - 2 || x == core._WIDTH_ - 3) && y == this._HY_ + 4) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(-10));
}
if ((x == core._WIDTH_ - 2 || x == core._WIDTH_ - 3) && y == this._HY_ - 2) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(10));
}
if (x >= this._HX_ - 1 && x <= this._HX_ + 1 && y === core._HEIGHT_ - 1) {
core.playSound('取消');
core.ui.closePanel();
}
if (x >= 0 && x <= this._HX_ + 3 && y >= 3 && y <= core._HEIGHT_ - 1 - 1)
core.flyTo(core.floorIds[core.status.event.data]);
return;
} else { ////RM版
if ((x == core._WIDTH_ - 4) && y == this._HY_ + 5) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(-1));
} else if ((x == core._WIDTH_ - 4) && y == this._HY_ + 3) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(1));
} else if ((x == core._WIDTH_ - 5) && y == this._HY_ + 4) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(-10));
} else if ((x == core._WIDTH_ - 3) && y == this._HY_ + 4) {
core.playSound('光标移动');
core.ui.drawFly(this._getNextFlyFloor(10));
} else if (x >= this._HX_ - 1 && x <= this._HX_ + 1 && y === core._HEIGHT_ - 1) {
core.playSound('取消');
core.ui.closePanel();
} else if (x >= 0 && x <= this._HX_ + 3 && y >= 3 && y <= core._HEIGHT_ - 1 - 1)
core.flyTo(core.floorIds[core.status.event.data]);
return;
}
}
}
}

View File

@ -122,11 +122,11 @@ html, body {
width: auto;
position: absolute;
text-align: center;
font-size: 1.44em;
font-size: 1.4em;
display: none;
z-index: 310;
bottom: 0;
margin-bottom: 9%;
margin-bottom: 5%;
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: normalTitle;
font-family: fzchyjw;
background: none !important;
border: none !important;
}
@ -147,44 +147,35 @@ 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: block;
color: #616161;
display: none;
}
.startButton {
width: 100%;
margin: 0;
font-weight: bold;
display: block;
cursor: pointer;
padding: 9px 0;
padding: 2px 0;
border-color: transparent;
border-width: 0px 0px 0px 0px;
border-width: 0px 0px 0px 5px;
border-style: solid;
border-radius: 0px;
}
.onChoiceAnimate {
animation: onChoice 2s ease-in-out 0s infinite normal none running;
}