Compare commits

...

6 Commits

127 changed files with 1028 additions and 1196 deletions

View File

@ -3963,6 +3963,10 @@ var terndefs_f6783a0a_522d_417e_8407_94c67b692e50 = [
"!doc": "显示一张图片<br/>例如core.showImage(1, core.material.images.images['winskin.png'], [0,0,128,128], [0,0,416,416], 0.5, 1000); // 裁剪winskin.png的最左边128×128px放大到铺满整个视野1秒内淡入到50%透明编号为1<br/>code: 图片编号为不大于50的正整数加上100后就是对应画布层的z值较大的会遮罩较小的注意色调层的z值为125UI层为140<br/>image: 图片文件名(可以是全塔属性中映射前的中文名)或图片对象(见上面的例子)<br/>sloc: 一行且至多四列的数组,表示从原图裁剪的左上角坐标和宽高,可选<br/>loc: 一行且至多四列的数组,表示图片在视野中的左上角坐标和宽高,可选<br/>opacityVal: 不透明度为小于1的正数。不填视为1<br/>time: 淡入时间单位为毫秒。不填视为0<br/>callback: 图片完全显示出来后的回调函数,可选",
"!type": "fn(code: number, image: string|image, sloc?: [number], loc?: [number], opacityVal?: number, time?: number, callback?: fn())"
},
"showImage2": {
"!doc": "显示一张图片,可以在状态栏显示<br/>例如core.showImage(1, core.material.images.images['winskin.png'], [0,0,128,128], [0,0,416,416], 0.5, 1000); // 裁剪winskin.png的最左边128×128px放大到铺满整个视野1秒内淡入到50%透明编号为1<br/>code: 图片编号为不大于50的正整数加上100后就是对应画布层的z值较大的会遮罩较小的注意色调层的z值为125UI层为140<br/>image: 图片文件名(可以是全塔属性中映射前的中文名)或图片对象(见上面的例子)<br/>sloc: 一行且至多四列的数组,表示从原图裁剪的左上角坐标和宽高,可选<br/>loc: 一行且至多四列的数组,表示图片在视野中的左上角坐标和宽高,可选<br/>opacityVal: 不透明度为小于1的正数。不填视为1<br/>time: 淡入时间单位为毫秒。不填视为0<br/>callback: 图片完全显示出来后的回调函数,可选",
"!type": "fn(code: number, image: string|image, sloc?: [number], loc?: [number], opacityVal?: number, time?: number, callback?: fn())"
},
"getItem": {
"!doc": "获得道具并提示,如果填写了坐标就会删除该点的该道具<br/>例如core.getItem('book'); // 获得敌人手册并提示<br/>id: 道具id必填<br/>num: 获得的数量不填视为1填了就别填坐标了<br/>x: 道具的横坐标,可选<br/>y: 道具的纵坐标,可选<br/>callback: 回调函数,可选",
"!type": "fn(id: string, num?: number, x?: number, y?: number, callback?: fn())"

View File

@ -874,6 +874,8 @@ action
| vibrate_s
| showImage_s
| showImage_1_s
| showImage2_s
| showImage2_1_s
| hideImage_s
| showTextImage_s
| moveImage_s
@ -2196,6 +2198,52 @@ var code = '{"type": "showImage", "code": '+NInt_0+', "image": "'+EvalString_0+'
return code;
*/;
showImage2_s
: '全局显示图片' '图片编号' NInt '图片' EvalString '翻转' Reverse_List BGNL?
'绘制的起点像素' 'x' PosString 'y' PosString '不透明度' Number '时间' Int '不等待执行完毕' Bool Newline
/* showImage2_s
tooltip : showImage2全局显示图片
helpUrl : /_docs/#/instruction
default : [1,"bg.jpg","null","0","0",1,0,false]
allImages : ['EvalString_0']
menu : [['选择图片','editor_blockly.selectMaterial(block, ["./project/images/:images", "EvalString_0"])']]
previewBlock : true
colour : this.imageColor
if (Reverse_List_0 && Reverse_List_0 != 'null') {
Reverse_List_0 = ', "reverse": "' + Reverse_List_0 + '"';
} else Reverse_List_0 = '';
var async = Bool_0?', "async": true':'';
var code = '{"type": "showImage2", "code": '+NInt_0+', "image": "'+EvalString_0+'"'+Reverse_List_0+', "loc": ['+PosString_0+','+PosString_1+'], "opacity": '+Number_0+', "time": '+Int_0+async+'},\n';
return code;
*/;
showImage2_1_s
: '全局显示图片' '图片编号' NInt '图片' EvalString '翻转' Reverse_List BGNL?
'裁剪的起点像素' 'x' PosString 'y' PosString '宽' PosString? '高' PosString? '不透明度' Number BGNL?
'绘制的起点像素' 'x' PosString 'y' PosString '宽' PosString? '高' PosString? '时间' Int '不等待执行完毕' Bool Newline
/* showImage2_1_s
tooltip : showImage2_1全局显示图片
helpUrl : /_docs/#/instruction
default : [1,"bg.jpg","null","0","0","","",1,"0","0","","",0,false]
allImages : ['EvalString_0']
menu : [['选择图片','editor_blockly.selectMaterial(block, ["./project/images/:images", "EvalString_0"])']]
previewBlock : true
colour : this.imageColor
if (Reverse_List_0 && Reverse_List_0 != 'null') {
Reverse_List_0 = ', "reverse": "' + Reverse_List_0 + '"';
} else Reverse_List_0 = '';
var async = Bool_0?', "async": true':'';
var code = '{"type": "showImage2", "code": '+NInt_0+', "image": "'+EvalString_0+'"'+Reverse_List_0+', '+
'"sloc": ['+PosString_0+','+PosString_1+','+PosString_2+','+PosString_3+'], '+
'"loc": ['+PosString_4+','+PosString_5+','+PosString_6+','+PosString_7+'], '+
'"opacity": '+Number_0+', "time": '+Int_0+async+'},\n';
return code;
*/;
showTextImage_s
: '显示图片化文本' EvalString_Multi BGNL?
'图片编号' NInt '起点像素' 'x' PosString 'y' PosString '行距' Number '翻转' Reverse_List '不透明度' Number '时间' Int '不等待执行完毕' Bool Newline

View File

@ -593,6 +593,19 @@ ActionParser.prototype.parseAction = function() {
data.code,data.image||data.name,data.reverse,data.loc[0],data.loc[1],data.opacity,data.time||0,data.async||false,this.next]);
}
break;
case "showImage2": // 显示图片
data.loc=data.loc||['','']
if (data.sloc) {
this.next = MotaActionBlocks['showImage2_1_s'].xmlText([
data.code,data.image||data.name,data.reverse,data.sloc[0],data.sloc[1],data.sloc[2],data.sloc[3],data.opacity,
data.loc[0],data.loc[1],data.loc[2],data.loc[3],data.time||0,data.async||false,this.next
]);
}
else {
this.next = MotaActionBlocks['showImage2_s'].xmlText([
data.code,data.image||data.name,data.reverse,data.loc[0],data.loc[1],data.opacity,data.time||0,data.async||false,this.next]);
}
break;
case "hideImage": // 清除图片
this.next = MotaActionBlocks['hideImage_s'].xmlText([
data.code,data.time||0,data.async||false,this.next]);

View File

@ -1 +1 @@
{"viewportLoc":[0,0],"editorLastFloorId":"QISHI"}
{"viewportLoc":[0,0],"editorLastFloorId":"nandu"}

View File

@ -349,6 +349,23 @@ editor_blockly = function () {
]);
}
break;
case 'showImage2_s': // 显示图片
case 'showImage2_1_s':
if (obj.sloc) {
editor.uievent.previewUI([
{ type: "setAttribute", alpha: obj.opacity },
{
type: "drawImage", image: obj.image, x: obj.sloc[0] , y: obj.sloc[1], w: obj.sloc[2], h: obj.sloc[3],
x1: obj.loc[0] - 160, y1: obj.loc[1], w1: obj.loc[2], h1: obj.loc[3], reverse: obj.reverse
}
]);
} else {
editor.uievent.previewUI([
{ type: "setAttribute", alpha: obj.opacity },
{ type: "drawImage", image: obj.image, x: obj.loc[0] - 160, y: obj.loc[1], w: obj.loc[2], h: obj.loc[3], reverse: obj.reverse }
]);
}
break;
case 'showGif_s': // 显示动图
if (obj.name && obj.loc) {
editor.uievent.previewUI([{ type: "drawImage", image: obj.name, x: obj.loc[0], y: obj.loc[1] }]);

View File

@ -220,6 +220,8 @@ editor_blocklyconfig=(function(){
'音像处理':[
MotaActionBlocks['showImage_s'].xmlText(),
MotaActionBlocks['showImage_1_s'].xmlText(),
MotaActionBlocks['showImage2_s'].xmlText(),
MotaActionBlocks['showImage2_1_s'].xmlText(),
MotaActionBlocks['hideImage_s'].xmlText(),
MotaActionBlocks['showTextImage_s'].xmlText(),
MotaActionBlocks['moveImage_s'].xmlText(),

View File

@ -45,6 +45,7 @@
</script>
<!-- injection -->
<div id='gameGroup'>
<canvas id="whole" style="position: absolute; left: 0; top: 0; z-index: 68;"></canvas>
<p id='mainTips'>请稍候...</p>
<img id='musicBtn'>
<div id='startPanel'>
@ -142,7 +143,7 @@
</div>
<!-- 状态栏canvas化 -->
<canvas id="statusCanvas" style="position: absolute; left: 0; top: 0; z-index: 100;"></canvas>
<canvas id="statusCanvas" style="position: absolute; left: 0; top: 0; z-index: 50;"></canvas>
<canvas id="caidan1" style="position: absolute; left: 0; top: 0;"></canvas>
</div>
<div id="toolBar" class="clearfix">

View File

@ -290,7 +290,8 @@ core.prototype.init = function (coreData, callback) {
core.canvas[name].canvas.height = (b ? core.__PIXELS__ : core._PY_);
}
}
core.dom.whole.width = b ? core.__PIXELS__ : core._PX_ + Math.round(core._PX_ / 3);
core.dom.whole.height = b ? core.__PIXELS__ : core._PY_;
core.loader._load(function () {
core.extensions._load(function () {
core._afterLoadResources(callback);

View File

@ -75,6 +75,8 @@ function main () {
'statusCanvasCtx': document.getElementById('statusCanvas').getContext('2d'),
'caidan1': document.getElementById('caidan1'),
'caidan1Ctx': document.getElementById('caidan1').getContext('2d'),
'whole': document.getElementById('whole'),
'wholeCtx': document.getElementById('whole').getContext('2d'),
'inputDiv': document.getElementById('inputDiv'),
'inputMessage': document.getElementById('inputMessage'),
'inputBox': document.getElementById('inputBox'),

View File

@ -256,6 +256,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"bg.jpg",
"bg2.jpg",
"biaoti.png",
"black.png",
"brave.png",
"caidan.png",
"cheating.png",

View File

@ -671,7 +671,7 @@ main.floors.CETAI=
"2,6": {
"floorId": "MT9",
"loc": [
11,
12,
4
],
"time": 200

View File

@ -13,13 +13,13 @@ main.floors.MT1=
"12,3": [
{
"type": "if",
"condition": "flag:271==1",
"condition": "(flag:271==1)",
"true": [
{
"type": "changeFloor",
"floorId": "shenhai",
"loc": [
8,
7,
11
],
"time": 0

View File

@ -2851,7 +2851,7 @@ main.floors.MT25=
"floorId": "xietu",
"loc": [
7,
10
11
],
"direction": "up"
}

View File

@ -48,7 +48,7 @@ main.floors.MT36=
"floorId": "xuetan",
"loc": [
7,
8
9
]
}
},

View File

@ -33,7 +33,7 @@ main.floors.PIANTOU1=
"type": "animate",
"name": "dazhaofadong",
"loc": [
6,
7,
7
]
},
@ -44,7 +44,7 @@ main.floors.PIANTOU1=
{
"type": "changePos",
"loc": [
6,
7,
-1
]
},
@ -52,7 +52,7 @@ main.floors.PIANTOU1=
"type": "animate",
"name": "shijian",
"loc": [
6,
7,
7
],
"async": true
@ -118,7 +118,7 @@ main.floors.PIANTOU1=
{
"type": "move",
"loc": [
6,
7,
7
],
"time": 500,

View File

@ -64,7 +64,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
5,
6,
5
]
]
@ -108,7 +108,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
7,
8,
5
]
]
@ -152,7 +152,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
6,
7,
6
]
]
@ -196,7 +196,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
4,
5,
6
]
]
@ -205,7 +205,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
8,
9,
6
]
]
@ -245,15 +245,6 @@ main.floors.PIANTOU10=
"time": 500,
"keep": true
},
{
"type": "show",
"loc": [
[
9,
7
]
]
},
{
"type": "show",
"loc": [
@ -276,8 +267,8 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
9,
8
12,
7
]
]
},
@ -303,8 +294,8 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
9,
9
12,
8
]
]
},
@ -326,6 +317,15 @@ main.floors.PIANTOU10=
]
]
},
{
"type": "show",
"loc": [
[
12,
9
]
]
},
{
"type": "setCurtain",
"time": 500
@ -365,7 +365,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
3,
4,
7
]
]
@ -409,7 +409,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
12,
13,
9
]
]
@ -453,7 +453,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
2,
3,
8
]
]
@ -497,7 +497,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
8,
9,
7
]
]
@ -506,7 +506,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
8,
9,
8
]
]
@ -515,7 +515,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
8,
9,
9
]
]
@ -570,7 +570,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
3,
4,
8
]
]
@ -579,7 +579,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
4,
5,
8
]
]
@ -634,7 +634,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
12,
13,
7
]
]
@ -643,7 +643,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
12,
13,
8
]
]
@ -698,7 +698,7 @@ main.floors.PIANTOU10=
"type": "show",
"loc": [
[
3,
4,
9
]
]
@ -742,7 +742,7 @@ main.floors.PIANTOU10=
"type": "changeFloor",
"floorId": "PIANTOU11",
"loc": [
-1,
0,
0
],
"time": 0
@ -750,7 +750,7 @@ main.floors.PIANTOU10=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -90,7 +90,7 @@ main.floors.PIANTOU11=
"type": "changeFloor",
"floorId": "nandu",
"loc": [
-1,
0,
11
],
"direction": "up",
@ -104,7 +104,7 @@ main.floors.PIANTOU11=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -44,7 +44,7 @@ main.floors.PIANTOU2=
{
"type": "changePos",
"loc": [
8,
9,
11
],
"direction": "left"
@ -67,7 +67,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "jian",
"loc": [
5,
6,
11
]
},
@ -75,7 +75,7 @@ main.floors.PIANTOU2=
"type": "hide",
"loc": [
[
5,
6,
11
]
],
@ -84,7 +84,7 @@ main.floors.PIANTOU2=
{
"type": "jumpHero",
"loc": [
1,
2,
9
],
"time": 1000
@ -93,7 +93,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "jian",
"loc": [
2,
3,
10
]
},
@ -101,7 +101,7 @@ main.floors.PIANTOU2=
"type": "hide",
"loc": [
[
2,
3,
10
]
],
@ -121,7 +121,7 @@ main.floors.PIANTOU2=
{
"type": "jumpHero",
"loc": [
4,
5,
5
],
"time": 500
@ -130,7 +130,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "jian",
"loc": [
4,
5,
8
]
},
@ -138,7 +138,7 @@ main.floors.PIANTOU2=
"type": "hide",
"loc": [
[
4,
5,
8
]
],
@ -161,7 +161,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "dazhaofadong",
"loc": [
8,
9,
5
]
},
@ -169,7 +169,7 @@ main.floors.PIANTOU2=
"type": "hide",
"loc": [
[
8,
9,
5
]
],
@ -179,14 +179,14 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "wangyangtiao",
"loc": [
8,
9,
5
]
},
{
"type": "changePos",
"loc": [
-1,
0,
5
],
"direction": "left"
@ -195,7 +195,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "shaohutiaoyou",
"loc": [
4,
5,
5
]
},
@ -207,7 +207,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "fengmuxuantian",
"loc": [
6,
7,
5
]
},
@ -215,14 +215,14 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "shaohutiaohuiyou",
"loc": [
3,
4,
5
]
},
{
"type": "changePos",
"loc": [
3,
4,
5
],
"direction": "right"
@ -231,7 +231,7 @@ main.floors.PIANTOU2=
"type": "animate",
"name": "wangyangtiaohui",
"loc": [
9,
10,
5
]
},
@ -239,7 +239,7 @@ main.floors.PIANTOU2=
"type": "show",
"loc": [
[
9,
10,
5
]
],
@ -273,7 +273,7 @@ main.floors.PIANTOU2=
{
"type": "openDoor",
"loc": [
8,
9,
8
]
},
@ -289,7 +289,7 @@ main.floors.PIANTOU2=
"type": "changeFloor",
"floorId": "PIANTOU3",
"loc": [
-1,
0,
0
],
"time": 0
@ -297,7 +297,7 @@ main.floors.PIANTOU2=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -21,7 +21,7 @@ main.floors.PIANTOU3=
{
"type": "move",
"loc": [
6,
7,
9
],
"time": 500,
@ -35,7 +35,7 @@ main.floors.PIANTOU3=
{
"type": "changePos",
"loc": [
6,
7,
9
],
"direction": "up"
@ -43,7 +43,7 @@ main.floors.PIANTOU3=
{
"type": "jumpHero",
"loc": [
6,
7,
5
],
"time": 1000
@ -109,7 +109,7 @@ main.floors.PIANTOU3=
{
"type": "jumpHero",
"loc": [
8,
9,
6
],
"time": 1000,
@ -139,7 +139,7 @@ main.floors.PIANTOU3=
{
"type": "jumpHero",
"loc": [
4,
5,
2
],
"time": 1000,
@ -169,7 +169,7 @@ main.floors.PIANTOU3=
{
"type": "move",
"loc": [
8,
9,
2
],
"time": 500,
@ -208,7 +208,7 @@ main.floors.PIANTOU3=
{
"type": "jumpHero",
"loc": [
8,
9,
10
],
"time": 1000,
@ -238,7 +238,7 @@ main.floors.PIANTOU3=
{
"type": "jumpHero",
"loc": [
9,
10,
9
],
"time": 500
@ -281,7 +281,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
7,
8,
6
]
},
@ -289,7 +289,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
4,
5,
5
]
},
@ -297,7 +297,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
8,
9,
9
]
},
@ -305,7 +305,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
1,
2,
2
]
},
@ -313,7 +313,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
2,
3,
9
]
},
@ -321,31 +321,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
12,
7
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
1,
4
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
9,
10
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
4,
13,
7
]
},
@ -361,16 +337,16 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "jiaochajian",
"loc": [
9,
1
10,
10
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
4,
12
5,
7
]
},
{
@ -378,6 +354,30 @@ main.floors.PIANTOU3=
"name": "jiaochajian",
"loc": [
3,
4
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
10,
1
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
5,
12
]
},
{
"type": "animate",
"name": "jiaochajian",
"loc": [
4,
7
]
},
@ -385,7 +385,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "wangyangtiaohui",
"loc": [
6,
7,
5
]
},
@ -393,7 +393,7 @@ main.floors.PIANTOU3=
"type": "setBlock",
"number": 301,
"loc": [
6,
7,
5
]
},
@ -401,14 +401,14 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "shaohutiaohuishang",
"loc": [
6,
7,
7
]
},
{
"type": "changePos",
"loc": [
6,
7,
7
],
"direction": "up"
@ -428,7 +428,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "hainazhijian",
"loc": [
6,
7,
6
]
},
@ -436,7 +436,7 @@ main.floors.PIANTOU3=
"type": "animate",
"name": "youpenxue",
"loc": [
6,
7,
5
]
},
@ -459,7 +459,7 @@ main.floors.PIANTOU3=
"type": "hide",
"loc": [
[
6,
7,
5
]
],
@ -491,7 +491,7 @@ main.floors.PIANTOU3=
"type": "changeFloor",
"floorId": "PIANTOU4",
"loc": [
6,
7,
8
],
"time": 0
@ -499,7 +499,7 @@ main.floors.PIANTOU3=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -55,7 +55,7 @@ main.floors.PIANTOU4=
"type": "setBlock",
"number": 341,
"loc": [
6,
7,
3
]
},
@ -87,7 +87,7 @@ main.floors.PIANTOU4=
"type": "hide",
"loc": [
[
6,
7,
3
]
]
@ -95,7 +95,7 @@ main.floors.PIANTOU4=
{
"type": "changePos",
"loc": [
6,
7,
3
],
"direction": "down"
@ -104,7 +104,7 @@ main.floors.PIANTOU4=
"type": "show",
"loc": [
[
5,
6,
6
]
]
@ -113,7 +113,7 @@ main.floors.PIANTOU4=
"type": "show",
"loc": [
[
6,
7,
7
]
]
@ -122,7 +122,7 @@ main.floors.PIANTOU4=
"type": "show",
"loc": [
[
7,
8,
7
]
]
@ -155,7 +155,7 @@ main.floors.PIANTOU4=
"type": "hide",
"loc": [
[
5,
6,
6
]
]
@ -164,7 +164,7 @@ main.floors.PIANTOU4=
"type": "hide",
"loc": [
[
6,
7,
7
]
]
@ -173,7 +173,7 @@ main.floors.PIANTOU4=
"type": "hide",
"loc": [
[
7,
8,
7
]
]
@ -182,11 +182,28 @@ main.floors.PIANTOU4=
"type": "show",
"loc": [
[
5,
6,
3
]
]
},
{
"type": "show",
"loc": [
[
8,
3
]
]
},
{
"type": "setBlock",
"number": 341,
"loc": [
7,
3
]
},
{
"type": "show",
"loc": [
@ -196,27 +213,10 @@ main.floors.PIANTOU4=
]
]
},
{
"type": "setBlock",
"number": 341,
"loc": [
6,
3
]
},
{
"type": "show",
"loc": [
[
6,
3
]
]
},
{
"type": "changePos",
"loc": [
-1,
0,
0
],
"direction": "down"
@ -239,14 +239,14 @@ main.floors.PIANTOU4=
"type": "changeFloor",
"floorId": "tawai",
"loc": [
-1,
0,
0
]
},
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -69,7 +69,7 @@ main.floors.PIANTOU7=
"type": "show",
"loc": [
[
5,
6,
2
]
]
@ -115,7 +115,7 @@ main.floors.PIANTOU7=
"type": "show",
"loc": [
[
6,
7,
4
]
]
@ -123,7 +123,7 @@ main.floors.PIANTOU7=
{
"type": "changePos",
"loc": [
-1,
0,
0
]
},

View File

@ -21,7 +21,7 @@ main.floors.PIANTOU8=
"type": "animate",
"name": "youcezhan",
"loc": [
8,
9,
8
]
},
@ -29,7 +29,7 @@ main.floors.PIANTOU8=
"type": "hide",
"loc": [
[
8,
9,
8
]
]
@ -41,7 +41,7 @@ main.floors.PIANTOU8=
{
"type": "jumpHero",
"loc": [
5,
6,
8
],
"time": 500
@ -50,7 +50,7 @@ main.floors.PIANTOU8=
"type": "animate",
"name": "leijian",
"loc": [
4,
5,
9
]
},
@ -58,7 +58,7 @@ main.floors.PIANTOU8=
"type": "hide",
"loc": [
[
4,
5,
8
]
]
@ -67,7 +67,7 @@ main.floors.PIANTOU8=
"type": "hide",
"loc": [
[
4,
5,
9
]
]
@ -76,7 +76,7 @@ main.floors.PIANTOU8=
"type": "hide",
"loc": [
[
5,
6,
7
]
]
@ -88,7 +88,7 @@ main.floors.PIANTOU8=
{
"type": "jumpHero",
"loc": [
8,
9,
7
],
"time": 500
@ -97,7 +97,7 @@ main.floors.PIANTOU8=
"type": "animate",
"name": "leijian",
"loc": [
9,
10,
7
]
},
@ -105,7 +105,7 @@ main.floors.PIANTOU8=
"type": "hide",
"loc": [
[
9,
10,
6
]
]
@ -114,7 +114,7 @@ main.floors.PIANTOU8=
"type": "hide",
"loc": [
[
9,
10,
7
]
]
@ -122,7 +122,7 @@ main.floors.PIANTOU8=
{
"type": "openDoor",
"loc": [
6,
7,
6
]
},
@ -164,7 +164,7 @@ main.floors.PIANTOU8=
"type": "changeFloor",
"floorId": "PIANTOU9",
"loc": [
11,
12,
11
],
"time": 0
@ -172,7 +172,7 @@ main.floors.PIANTOU8=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -6,19 +6,16 @@ main.floors.QISHI=
"canFlyTo": false,
"canUseQuickShop": true,
"cannotViewMap": true,
"images": [
{
"name": "yinyuecun.jpg",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"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",
@ -35,19 +32,17 @@ main.floors.QISHI=
],
"time": 20
},
"................公、公主殿下!!",
"..............呼...呼...........",
"...........公主殿下...........您等等我.............",
"公、公主殿下!!",
"...呼...呼........",
"公主殿下......您等等我......",
{
"type": "setCurtain",
"color": [
0,
0,
0,
0
],
"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 = 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,
"keep": true
"noSkip": true
},
{
"type": "setText",
@ -67,76 +62,65 @@ main.floors.QISHI=
"background": "winskin.png",
"time": 20
},
"\\c[25]怎、怎么又是你邵护卫!烦死啦你!",
"\\c[25]怎、怎么又是你邵护卫烦死啦你!",
{
"type": "setText",
"position": "down",
"text": [
250,
250,
250,
255,
255,
255,
1
],
"background": "winskin.png",
"time": 20
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "gongzhuzhending.png",
"sloc": [
0,
0,
null
],
"loc": [
160,
50
330,
90,
319,
390
],
"opacity": 1,
"time": 0
"time": 500
},
"\t[公主]一天到晚总是跟着我!烦不烦啊你!",
"\t[公主]一天到晚总是跟着我烦不烦啊你!",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuzixin.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"opacity": 1,
"time": 0
},
"\t[邵虎]公主下请不要再任性了。你看看你都跑多远了。",
"\t[公主]不用你管!",
{
"type": "showImage",
"code": 5,
"image": "yinyuecunheibai.jpg",
"loc": [
0,
0
50,
291,
466
],
"opacity": 1,
"time": 0
"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 = 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": "showImage",
"code": 6,
"image": "shaohuzixinheibai.png",
"loc": [
-30,
20
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 7,
"image": "gongzhuzhendingheibai.png",
"loc": [
160,
50
],
"opacity": 1,
"time": 0
"type": "sleep",
"time": 500
},
{
"type": "setText",
@ -145,28 +129,136 @@ main.floors.QISHI=
"time": 20
},
"我叫邵虎。是天枢帝国萧涵公主的亲卫队长。",
"身居要职,我的唯一职责就是保护公主殿下的安全",
"但公主殿下偏偏是个不让人省心的主",
"而今天,公主殿下又吵着要去城外的天塔观光。",
"据说天塔是一百年前天枢与邻国的圣战争夺之后,天枢皇帝为了纪念战争的胜利而修建。",
"时隔多年,天塔已经成为了妖兽以及魔怪的栖息地",
"但令人不解的是,魔怪只栖息在塔的内部,却没有怪外出伤人的事例。",
"但毕是魔怪的栖息地,由于担心公主会出现危险,我极力反对公主的这次出行",
"可是在我的极力劝阻之下,公主却自己一个人跑出了皇城。",
"身居要职我的唯一职责就是保护公主殿下的安全",
"但公主殿下偏偏是个不让人省心的主",
"而今天,公主殿下又吵嚷着要去城外的天塔观光。",
"据说天塔是一百年前天枢与邻国的圣战争夺之后天枢皇帝为了纪念战争的胜利而修建。",
"时隔多年天塔已经成为了妖兽以及魔怪的栖息地",
"但是令人不解的是,魔怪只栖息在塔的内部,却没有魔怪外出伤人的事例。",
"但毕竟是魔怪的栖息地,由于担心公主会出现危险,我极力反对公主这次出行。",
"可是在我的极力劝阻之下公主却自己一个人跑出了皇城。",
{
"type": "hideImage",
"code": 6,
"time": 0
"type": "setText",
"position": "down",
"background": "winskin.png",
"time": 20
},
{
"type": "hideImage",
"code": 5,
"time": 0
"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 = 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": "hideImage",
"code": 7,
"time": 0
"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 = 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 = 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",
@ -174,233 +266,141 @@ main.floors.QISHI=
"background": "winskin.png",
"time": 20
},
"\t[邵虎]公主殿下快回去吧,要是在半途迷路了怎么办?",
{
"type": "showImage",
"code": 1,
"image": "gongzhuheihua.png",
"loc": [
160,
50
],
"opacity": 1,
"time": 0
},
"\t[公主]烦死了烦死了烦死了~~~~~~",
"\t[公主]邵护卫你有完没完!!!!",
"\t[公主]本公主就是要出来!!!!你能把我怎么着吧!",
"\t[公主]你就是要跟我对着干!!!就是跟我唱反调!!!我告诉你!!跟我对着干的人都没有好下场!!没有没有没有!!!!!",
{
"type": "showImage",
"code": 2,
"image": "shaohujinzhang.png",
"loc": [
-30,
20
],
"opacity": 1,
"time": 0
},
"\t[邵虎]公主殿下您别生气.......我没有要和您做对的意思........",
"\t[公主]那你是什么?你是什么!",
"\t[邵虎]公主殿下消消气........要不.........您跟紧我,我带你去天塔附近看一看好吗.......至于上天塔里面玩什么的........太危险了.....",
{
"type": "showImage",
"code": 1,
"image": "gongzhuxiao.png",
"loc": [
160,
50
],
"opacity": 1,
"time": 0
},
"\t[公主]这可是你说的~~~!不许反悔了!~",
{
"type": "showImage",
"code": 2,
"image": "shaohuxiao.png",
"loc": [
-30,
20
],
"opacity": 1,
"time": 0
},
"\t[邵虎]你开心就好........那我们走吧.......",
{
"type": "showImage",
"code": 5,
"image": "yinyuecunheibai.jpg",
"loc": [
0,
0
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 6,
"image": "gongzhuxiaoheibai.png",
"loc": [
160,
50
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 7,
"image": "shaohuxiaoheibai.png",
"loc": [
-30,
20
],
"opacity": 1,
"time": 0
},
"这就是那个任性的公主。",
"也是那个开朗的笑容能让平常冷漠的自己也开心的笑起来的公主。",
"是我每天都要保护的人。",
"也是我日日夜夜都想要打心里惦记的人。",
"只是她恋慕的心早已经有了明确的指向....",
{
"type": "hideImage",
"code": 5,
"time": 0
},
{
"type": "hideImage",
"code": 6,
"time": 0
},
{
"type": "hideImage",
"code": 7,
"time": 0
},
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "gongzhupinghe.png",
"sloc": [
0,
0,
null
],
"loc": [
160,
50
330,
90,
319,
390
],
"opacity": 1,
"time": 0
"time": 500
},
"\t[公主]对了对了,汪护卫呢?不是应该跟你在一起吗?",
"\t[公主]对了对了,汪护卫呢?不是应该跟你在一起吗?",
{
"type": "showImage",
"type": "showImage2",
"code": 2,
"image": "shaohuzixin.png",
"loc": [
-30,
20
"sloc": [
0,
0,
null
],
"opacity": 1,
"time": 0
},
"\t[邵虎]他和我分头来找你,大概就在附近吧。",
{
"type": "showImage",
"code": 1,
"image": "gongzhuzhending.png",
"loc": [
160,
50
],
"opacity": 1,
"time": 0
},
"\t[公主]怎么不是汪大哥先来找到我呢............唉,真讨厌......",
"\t[邵虎].......................",
{
"type": "showImage",
"code": 5,
"image": "yinyuecunheibai.jpg",
"loc": [
0,
0
50,
291,
466
],
"opacity": 1,
"time": 0
"time": 500
},
"\t[邵虎]他......和我分头来找你,大概就在附近吧。",
{
"type": "showImage",
"code": 6,
"image": "gongzhuzhendingheibai.png",
"type": "showImage2",
"code": 1,
"image": "gongzhuzhending.png",
"sloc": [
0,
0,
null
],
"loc": [
160,
50
330,
90,
319,
390
],
"opacity": 1,
"time": 0
"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 = 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": "showImage",
"code": 7,
"image": "shaohuzixinheibai.png",
"loc": [
-30,
20
],
"opacity": 1,
"time": 0
},
"汪洋,我的剑术老师,我的大哥,我最好的兄弟。",
"他比我有风度,比我武功高,比我人缘好。我敬佩他,他很完美,让人感到无法超越。",
"他首经有过一段恋情,和我相依为命的姐姐。",
{
"type": "hideImage",
"code": 5,
"time": 0
"type": "sleep",
"time": 500
},
{
"type": "hideImage",
"code": 6,
"time": 0
"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 = 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": "hideImage",
"code": 7,
"time": 0
"type": "sleep",
"time": 500
},
"\t[公主]话说前面是一个村子了呢......没听说过这附近有村子啊?",
"\t[公主]喂!姓邵的,你知不知道这里是哪啊?",
"\t[邵虎]这里是镇天谷,是汪大哥的家乡。",
{
"type": "showImage",
"type": "setText",
"position": "down",
"background": "winskin.png",
"time": 20
},
"\t[公主]话说前面是一个村子了呢......没听说过这附近有村子啊......",
"\t[公主]喂、、姓邵的,你知不知道这里是哪啊?",
"\t[邵虎]这里是镇天谷,是汪大哥的家乡。",
{
"type": "showImage2",
"code": 1,
"image": "gongzhujiao.png",
"sloc": [
0,
0,
null
],
"loc": [
160,
50
330,
90,
319,
390
],
"opacity": 1,
"time": 0
"time": 500
},
"\t[公主]诶诶!!??",
"\t[公主]汪大哥........啊不...汪护卫是出身在这里的么?",
"\t[公主]我竟然完全都不知道啊...........",
"\t[公主]诶诶",
"\t[公主]汪大哥...啊不...汪护卫是出身在这里的么!",
"\t[公主]我竟然完全都不知道啊......",
{
"type": "showImage",
"type": "showImage2",
"code": 1,
"image": "gongzhupinghe.png",
"sloc": [
0,
0,
null
],
"loc": [
160,
50
330,
90,
319,
390
],
"opacity": 1,
"time": 0
"time": 500
},
"\t[公主]好吧~~~那我们就去汪护卫的家乡看一看好了~~~!",
"\t[邵虎]诶~~~~诶!!?",
"\t[邵虎](也好,这里肯定是比天塔安全得多........)",
"\t[邵虎]那我们走吧公主殿下,会碰上汪大哥也说不定。",
"\t[公主]好吧~~~~那我们就去汪护卫的家乡看一看好了~~",
"\t[邵虎]诶.~~~~~诶!!?",
"\t[邵虎](也好,这里肯定是比天塔安全得多......",
"\t[邵虎]那我们走吧公主殿下会碰上汪大哥也说不定。",
{
"type": "hideImage",
"code": 1,

View File

@ -22,7 +22,7 @@ main.floors.XIANJIE=
"7,11": {
"floorId": "MT16",
"loc": [
11,
12,
1
],
"time": 500

View File

@ -26,7 +26,7 @@ main.floors.bishi=
"12,9": {
"floorId": "MT49",
"loc": [
8,
9,
1
],
"direction": "down"

View File

@ -93,7 +93,7 @@ main.floors.duwei1=
"type": "changeFloor",
"floorId": "duwei2",
"loc": [
-1,
0,
0
],
"time": 0
@ -101,7 +101,7 @@ main.floors.duwei1=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -90,7 +90,7 @@ main.floors.duwei2=
"type": "changeFloor",
"floorId": "duwei3",
"loc": [
-1,
0,
0
],
"time": 0
@ -98,7 +98,7 @@ main.floors.duwei2=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -160,7 +160,7 @@ main.floors.duwei3=
"type": "changeFloor",
"floorId": "duwei4",
"loc": [
-1,
0,
0
],
"time": 0
@ -168,7 +168,7 @@ main.floors.duwei3=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -71,7 +71,7 @@ main.floors.duwei4=
"type": "changeFloor",
"floorId": "MT20",
"loc": [
6,
7,
5
],
"time": 500
@ -79,7 +79,7 @@ main.floors.duwei4=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -92,7 +92,7 @@ main.floors.huxiao1=
"type": "changeFloor",
"floorId": "huxiao2",
"loc": [
-1,
0,
-1
],
"time": 0
@ -100,7 +100,7 @@ main.floors.huxiao1=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -74,7 +74,7 @@ main.floors.huxiao2=
"type": "changeFloor",
"floorId": "huxiao3",
"loc": [
-1,
0,
-1
],
"time": 0
@ -82,7 +82,7 @@ main.floors.huxiao2=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -69,7 +69,7 @@ main.floors.huxiao3=
"type": "changeFloor",
"floorId": "MT10",
"loc": [
7,
8,
8
],
"direction": "up",
@ -78,7 +78,7 @@ main.floors.huxiao3=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -15,7 +15,7 @@ main.floors.jiange=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}
@ -28,7 +28,7 @@ main.floors.jiange=
"type": "changeFloor",
"floorId": "MT64",
"loc": [
1,
2,
5
]
},
@ -61,7 +61,7 @@ main.floors.jiange=
"type": "changeFloor",
"floorId": "jiange",
"loc": [
8,
9,
9
],
"direction": "right"
@ -83,7 +83,7 @@ main.floors.jiange=
{
"type": "changePos",
"loc": [
8,
9,
9
],
"direction": "up"
@ -160,7 +160,7 @@ main.floors.jiange=
"type": "animate",
"name": "haizhitiejian",
"loc": [
8,
9,
8
]
},
@ -174,7 +174,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
8,
9,
8
],
"time": 500,
@ -195,7 +195,7 @@ main.floors.jiange=
"type": "animate",
"name": "tiejian",
"loc": [
8,
9,
8
]
},
@ -209,7 +209,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
8,
9,
7
],
"time": 500,
@ -225,7 +225,7 @@ main.floors.jiange=
{
"type": "changePos",
"loc": [
8,
9,
9
],
"direction": "up"
@ -241,7 +241,7 @@ main.floors.jiange=
"type": "animate",
"name": "haizhitiejian",
"loc": [
8,
9,
8
],
"alignWindow": true
@ -256,7 +256,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
8,
9,
8
],
"time": 500,
@ -277,7 +277,7 @@ main.floors.jiange=
"type": "animate",
"name": "tiejian",
"loc": [
8,
9,
8
]
},
@ -291,7 +291,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
8,
9,
7
],
"time": 500,
@ -307,7 +307,7 @@ main.floors.jiange=
{
"type": "changePos",
"loc": [
8,
9,
9
],
"direction": "up"
@ -323,7 +323,7 @@ main.floors.jiange=
"type": "animate",
"name": "shenlansebaofa",
"loc": [
8,
9,
9
]
},
@ -335,7 +335,7 @@ main.floors.jiange=
"type": "animate",
"name": "shangzhanjian",
"loc": [
8,
9,
8
],
"async": true
@ -379,7 +379,7 @@ main.floors.jiange=
{
"type": "changePos",
"loc": [
8,
9,
7
],
"direction": "down"
@ -902,7 +902,7 @@ main.floors.jiange=
"type": "animate",
"name": "STshengfa2",
"loc": [
8,
9,
8
]
},
@ -911,7 +911,7 @@ main.floors.jiange=
"type": "animate",
"name": "STshengfa2",
"loc": [
8,
9,
8
]
},
@ -925,7 +925,7 @@ main.floors.jiange=
"number": "blueKnight",
"loc": [
[
8,
9,
8
]
],
@ -1000,7 +1000,7 @@ main.floors.jiange=
{
"type": "changePos",
"loc": [
7,
8,
7
],
"direction": "up"
@ -1210,7 +1210,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
6,
7,
6
],
"time": 500,
@ -1224,7 +1224,7 @@ main.floors.jiange=
"type": "animate",
"name": "hainazhijian",
"loc": [
6,
7,
6
]
},
@ -1246,7 +1246,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
7,
8,
7
],
"time": 500,
@ -1282,7 +1282,7 @@ main.floors.jiange=
"number": "yellowKnight",
"loc": [
[
6,
7,
6
]
]
@ -1329,7 +1329,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
6,
7,
6
],
"time": 500,
@ -1350,7 +1350,7 @@ main.floors.jiange=
{
"type": "changePos",
"loc": [
7,
8,
7
],
"direction": "down"
@ -1461,7 +1461,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
9,
10,
9
],
"time": 500,
@ -1491,7 +1491,7 @@ main.floors.jiange=
{
"type": "move",
"loc": [
10,
11,
10
],
"time": 500,
@ -1504,7 +1504,7 @@ main.floors.jiange=
"type": "hide",
"loc": [
[
11,
12,
10
]
],
@ -1514,7 +1514,7 @@ main.floors.jiange=
"type": "hide",
"loc": [
[
6,
7,
1
]
],
@ -1537,7 +1537,7 @@ main.floors.jiange=
"number": "redGem",
"loc": [
[
6,
7,
10
]
],
@ -1548,7 +1548,7 @@ main.floors.jiange=
"number": "redGem",
"loc": [
[
6,
7,
11
]
],
@ -1559,23 +1559,12 @@ main.floors.jiange=
"number": "redGem",
"loc": [
[
5,
6,
11
]
],
"async": true
},
{
"type": "setBlock",
"number": "blueGem",
"loc": [
[
10,
6
]
],
"async": true
},
{
"type": "setBlock",
"number": "blueGem",
@ -1592,7 +1581,18 @@ main.floors.jiange=
"number": "blueGem",
"loc": [
[
11,
12,
6
]
],
"async": true
},
{
"type": "setBlock",
"number": "blueGem",
"loc": [
[
12,
5
]
],
@ -1603,29 +1603,29 @@ main.floors.jiange=
"number": "bluePotion",
"loc": [
[
5,
6,
5
]
],
"async": true
},
{
"type": "setBlock",
"number": "bluePotion",
"loc": [
[
3,
3
]
],
"async": true
},
{
"type": "setBlock",
"number": "bluePotion",
"loc": [
[
4,
3
]
],
"async": true
},
{
"type": "setBlock",
"number": "bluePotion",
"loc": [
[
5,
4
]
],
@ -1636,7 +1636,7 @@ main.floors.jiange=
"number": "redKey",
"loc": [
[
2,
3,
2
]
],

View File

@ -95,7 +95,7 @@ main.floors.jieke1=
"type": "changeFloor",
"floorId": "jieke2",
"loc": [
-1,
0,
0
],
"time": 0
@ -103,7 +103,7 @@ main.floors.jieke1=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}
@ -194,7 +194,7 @@ main.floors.jieke1=
"type": "changeFloor",
"floorId": "jieke4",
"loc": [
-1,
0,
0
],
"time": 0
@ -202,7 +202,7 @@ main.floors.jieke1=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -255,7 +255,7 @@ main.floors.jieke2=
"type": "changeFloor",
"floorId": "jieke3",
"loc": [
-1,
0,
0
],
"time": 0
@ -263,7 +263,7 @@ main.floors.jieke2=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -295,7 +295,7 @@ main.floors.jieke3=
"type": "changeFloor",
"floorId": "jieke1",
"loc": [
-1,
0,
0
],
"time": 0
@ -303,7 +303,7 @@ main.floors.jieke3=
{
"type": "trigger",
"loc": [
1,
2,
0
]
}

View File

@ -121,7 +121,7 @@ main.floors.jieke4=
"type": "changeFloor",
"floorId": "jieke5",
"loc": [
-1,
0,
0
],
"time": 0
@ -129,7 +129,7 @@ main.floors.jieke4=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -496,7 +496,7 @@ main.floors.jieke5=
"type": "changeFloor",
"floorId": "MT13",
"loc": [
8,
9,
8
],
"time": 0
@ -504,7 +504,7 @@ main.floors.jieke5=
{
"type": "trigger",
"loc": [
12,
13,
0
]
}

View File

@ -9,8 +9,8 @@ main.floors.nandu=
"images": [
{
"name": "nanduxuanze.jpg",
"canvas": "bg",
"x": -80,
"canvas": "whole",
"x": 0,
"y": 0
}
],
@ -22,6 +22,10 @@ main.floors.nandu=
1
],
"firstArrive": [
{
"type": "function",
"function": "function(){\ncontrol.prototype.hideStatusBar();\n}"
},
{
"type": "trigger",
"loc": [
@ -70,59 +74,13 @@ main.floors.nandu=
"keep": true
},
{
"type": "showImage",
"code": 1,
"image": "easy.png",
"loc": [
0,
64
],
"opacity": 1,
"time": 0
"type": "setValue",
"name": "flag:hard",
"value": "1"
},
{
"type": "showImage",
"code": 2,
"image": "anhard.png",
"loc": [
0,
192
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 3,
"image": "ancheating.png",
"loc": [
0,
320
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 4,
"image": "anhell.png",
"loc": [
0,
256
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 5,
"image": "annormal.png",
"loc": [
0,
128
],
"opacity": 1,
"time": 0
"type": "function",
"function": "function(){\ncore.drawImage(core.dom.wholeCtx, core.material.images.images['nanduxuanze.jpg'], 0, 0);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 1 ? \"\" : \"an\") + 'easy.png'], -30, -55, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 2 ? \"\" : \"an\") + 'normal.png'], -30, 20, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 3 ? \"\" : \"an\") + 'hard.png'], -30, 95, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 4 ? \"\" : \"an\") + 'hell.png'], -30, 170, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 5 || flags.hard == 0 ? \"\" : \"an\") + 'cheating.png'], -30, 245, 710 * 0.6, 487 * 0.6);\n}"
},
{
"type": "showImage",
@ -211,129 +169,8 @@ main.floors.nandu=
],
"false": [
{
"type": "if",
"condition": "((flag:x<=3)&&(flag:y==2))",
"true": [
{
"type": "if",
"condition": "(flag:hard==1)",
"true": [
{
"type": "setValue",
"name": "flag:xuanzhong",
"value": "1"
}
],
"false": [
{
"type": "setValue",
"name": "flag:hard",
"value": "1"
}
]
}
],
"false": []
},
{
"type": "if",
"condition": "((flag:x<=3)&&(flag:y==4))",
"true": [
{
"type": "if",
"condition": "(flag:hard==2)",
"true": [
{
"type": "setValue",
"name": "flag:xuanzhong",
"value": "1"
}
],
"false": [
{
"type": "setValue",
"name": "flag:hard",
"value": "2"
}
]
}
],
"false": []
},
{
"type": "if",
"condition": "((flag:x<=3)&&(flag:y==6))",
"true": [
{
"type": "if",
"condition": "(flag:hard==3)",
"true": [
{
"type": "setValue",
"name": "flag:xuanzhong",
"value": "1"
}
],
"false": [
{
"type": "setValue",
"name": "flag:hard",
"value": "3"
}
]
}
],
"false": []
},
{
"type": "if",
"condition": "((flag:x<=3)&&(flag:y==8))",
"true": [
{
"type": "if",
"condition": "(flag:hard==4)",
"true": [
{
"type": "setValue",
"name": "flag:xuanzhong",
"value": "1"
}
],
"false": [
{
"type": "setValue",
"name": "flag:hard",
"value": "4"
}
]
}
],
"false": []
},
{
"type": "if",
"condition": "((flag:x<=3)&&(flag:y==10))",
"true": [
{
"type": "if",
"condition": "(flag:hard==5)",
"true": [
{
"type": "setValue",
"name": "flag:xuanzhong",
"value": "1"
}
],
"false": [
{
"type": "setValue",
"name": "flag:hard",
"value": "5"
}
]
}
],
"false": []
"type": "function",
"function": "function(){\nvar h = -1;\nif (flags.px <= 160 && flags.py >= 46 && flags.py <= 430) h = Math.floor((flags.py - 46) / 77) + 1;\nif (h > 0) {\n\tif (h == flags.hard) flags.xuanzhong = 1;\n\telse flags.hard = h;\n}\n}"
}
]
},
@ -367,259 +204,17 @@ main.floors.nandu=
"true": [
{
"type": "function",
"function": "function(){\nswitch (core.getFlag(\"hard\")) {\ncase 1:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择简单难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\n\ncase 2:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择中等难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\ncase 3:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择困难难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\ncase 4:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择噩梦难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\tbreak;\ncase 5:\n\tcore.insertAction([{\n\t\t\"type\": \"choices\",\n\t\t\"text\": \"是否选择作弊难度\",\n\t\t\"choices\": [{\n\t\t\t\t\"text\": \"是\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"break\" },\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"否\",\n\t\t\t\t\"action\": [\n\t\t\t\t\t{ \"type\": \"setValue\", \"name\": \"flag:xuanzhong\", \"value\": \"0\" },\n\t\t\t\t]\n\t\t\t},\n\t\t]\n\t}, ])\n\n\tbreak;\n\n\n}\n}"
"function": "function(){\ncore.insertAction([{\n\t\"type\": \"choices\",\n\t\"text\": \"是否选择\" + [\"作弊\", \"简单\", \"中等\", \"困难\", \"噩梦\", \"作弊\"][flags.hard] + \"难度\",\n\t\"choices\": [{\n\t\t\t\"text\": \"是\",\n\t\t\t\"action\": [\n\t\t\t\t{ \"type\": \"break\" },\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"text\": \"否\",\n\t\t\t\"action\": [\n\t\t\t\t{ \"type\": \"setValue\", \"name\": \"fla\" + \"g:xuanzhong\", \"value\": \"0\" },\n\t\t\t]\n\t\t},\n\t]\n}, ])\n}"
}
],
"false": [
{
"type": "hideImage",
"code": 1,
"time": 0
},
{
"type": "if",
"condition": "(flag:hard==1)",
"true": [
{
"type": "showImage",
"code": 6,
"image": "0easy.png",
"loc": [
-160,
0
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 1,
"image": "easy.png",
"loc": [
0,
64
],
"opacity": 1,
"time": 0
}
],
"false": [
{
"type": "showImage",
"code": 1,
"image": "aneasy.png",
"loc": [
0,
64
],
"opacity": 1,
"time": 0
}
]
},
{
"type": "if",
"condition": "(flag:hard==2)",
"true": [
{
"type": "showImage",
"code": 6,
"image": "0normal.png",
"loc": [
-160,
0
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 2,
"image": "normal.png",
"loc": [
0,
128
],
"opacity": 1,
"time": 0
}
],
"false": [
{
"type": "showImage",
"code": 2,
"image": "annormal.png",
"loc": [
0,
128
],
"opacity": 1,
"time": 0
}
]
},
{
"type": "if",
"condition": "(flag:hard==3)",
"true": [
{
"type": "showImage",
"code": 6,
"image": "0hard.png",
"loc": [
-160,
0
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 3,
"image": "hard.png",
"loc": [
0,
192
],
"opacity": 1,
"time": 0
}
],
"false": [
{
"type": "showImage",
"code": 3,
"image": "anhard.png",
"loc": [
0,
192
],
"opacity": 1,
"time": 0
}
]
},
{
"type": "if",
"condition": "(flag:hard==4)",
"true": [
{
"type": "showImage",
"code": 6,
"image": "0hell.png",
"loc": [
-160,
0
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 4,
"image": "hell.png",
"loc": [
0,
256
],
"opacity": 1,
"time": 0
}
],
"false": [
{
"type": "showImage",
"code": 4,
"image": "anhell.png",
"loc": [
0,
256
],
"opacity": 1,
"time": 0
}
]
},
{
"type": "if",
"condition": "(flag:hard==5)",
"true": [
{
"type": "showImage",
"code": 6,
"image": "0cheating.png",
"loc": [
-160,
0
],
"opacity": 1,
"time": 0
},
{
"type": "showImage",
"code": 5,
"image": "cheating.png",
"loc": [
0,
320
],
"opacity": 1,
"time": 0
}
],
"false": [
{
"type": "showImage",
"code": 5,
"image": "ancheating.png",
"loc": [
0,
320
],
"opacity": 1,
"time": 0
"type": "function",
"function": "function(){\ncore.drawImage(core.dom.wholeCtx, core.material.images.images['nanduxuanze.jpg'], 0, 0);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 1 ? \"\" : \"an\") + 'easy.png'], -30, -55, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 2 ? \"\" : \"an\") + 'normal.png'], -30, 20, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 3 ? \"\" : \"an\") + 'hard.png'], -30, 95, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 4 ? \"\" : \"an\") + 'hell.png'], -30, 170, 710 * 0.6, 487 * 0.6);\ncore.drawImage(core.dom.wholeCtx, core.material.images.images[(flags.hard == 5 || flags.hard == 0 ? \"\" : \"an\") + 'cheating.png'], -30, 245, 710 * 0.6, 487 * 0.6);\n\ncore.insertAction({ \"type\": \"showImage\", \"code\": 6, \"image\": [\"0cheating.png\", \"0easy.png\", \"0normal.png\", \"0hard.png\", \"0hell.png\", \"0cheating.png\"][flags.hard], \"loc\": [-160, 0], \"opacity\": 1, \"time\": 0 })\n}"
}
]
}
]
}
]
},
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 0,
"keep": true
},
{
"type": "hideImage",
"code": 1,
"time": 0
},
{
"type": "hideImage",
"code": 2,
"time": 0
},
{
"type": "hideImage",
"code": 3,
"time": 0
},
{
"type": "hideImage",
"code": 4,
"time": 0
},
{
"type": "hideImage",
"code": 5,
"time": 0
},
{
"type": "hideImage",
@ -633,154 +228,17 @@ main.floors.nandu=
"time": 20
},
{
"type": "switch",
"condition": "flag:hard",
"caseList": [
{
"case": "1",
"action": [
{
"type": "setGlobalAttribute",
"name": "statusLeftBackground",
"value": "url(project/images/heng1.png) 0 0/100% 100% no-repeat"
},
{
"type": "setGlobalAttribute",
"name": "toolsBackground",
"value": "url(project/images/dibu1.png) 0 0/100% 100% no-repeat"
},
{
"type": "update"
},
{
"type": "setBlock",
"number": "122",
"loc": [
[
5,
5
]
],
"floorId": "MT0"
}
]
},
{
"case": "2",
"action": [
{
"type": "setGlobalAttribute",
"name": "statusLeftBackground",
"value": "url(project/images/heng2.png) 0 0/100% 100% no-repeat"
},
{
"type": "setGlobalAttribute",
"name": "toolsBackground",
"value": "url(project/images/dibu2.png) 0 0/100% 100% no-repeat"
},
{
"type": "update"
},
{
"type": "setBlock",
"number": "122",
"loc": [
[
5,
5
]
],
"floorId": "MT0"
},
{
"type": "setBlock",
"number": "122",
"loc": [
[
5,
4
]
],
"floorId": "MT0"
}
]
},
{
"case": "3",
"action": [
{
"type": "setGlobalAttribute",
"name": "statusLeftBackground",
"value": "url(project/images/heng3.png) 0 0/100% 100% no-repeat"
},
{
"type": "setGlobalAttribute",
"name": "toolsBackground",
"value": "url(project/images/dibu3.png) 0 0/100% 100% no-repeat"
},
{
"type": "update"
}
]
},
{
"case": "4",
"action": [
{
"type": "setGlobalAttribute",
"name": "statusLeftBackground",
"value": "url(project/images/heng4.png) 0 0/100% 100% no-repeat"
},
{
"type": "setGlobalAttribute",
"name": "toolsBackground",
"value": "url(project/images/dibu4.png) 0 0/100% 100% no-repeat"
},
{
"type": "update"
}
]
},
{
"case": "5",
"action": [
{
"type": "setGlobalAttribute",
"name": "statusLeftBackground",
"value": "url(project/images/heng5.png) 0 0/100% 100% no-repeat"
},
{
"type": "setGlobalAttribute",
"name": "toolsBackground",
"value": "url(project/images/dibu5.png) 0 0/100% 100% no-repeat"
},
{
"type": "update"
},
{
"type": "setBlock",
"number": "122",
"loc": [
[
5,
5
]
],
"floorId": "MT0"
},
{
"type": "setValue",
"name": "status:mdef",
"value": "800"
}
]
}
]
"type": "function",
"function": "function(){\ncore.insertAction({ \"type\": \"setGlobalAttribute\", \"name\": \"statusLeftBackground\", \"value\": \"url(project/images/heng\" + flags.hard + \".png) 0 0/100% 100% no-repeat\" })\ncore.insertAction({ \"type\": \"setGlobalAttribute\", \"name\": \"toolsBackground\", \"value\": \"url(project/images/dibu\" + flags.hard + \".png) 0 0/100% 100% no-repeat\" })\ncore.insertAction({ \"type\": \"update\" });\nif (flags.hard != 3 && flags.hard != 4) core.insertAction({\n\t\"type\": \"setBlock\",\n\t\"number\": \"122\",\n\t\"loc\": [\n\t\t[5, 5]\n\t],\n\t\"floorId\": \"MT0\"\n})\nif (flags.hard == 2) core.insertAction({\n\t\"type\": \"setBlock\",\n\t\"number\": \"122\",\n\t\"loc\": [\n\t\t[5, 4]\n\t],\n\t\"floorId\": \"MT0\"\n})\nif (flags.hard == 0 || flags.hard == 5) core.status.hero.mdef += 800;\n}"
},
{
"type": "function",
"function": "function(){\nswitch(core.getFlag(\"hard\")){\n\tcase 1 :core.status.hard=\"简单\";\n\t\tbreak;\n\tcase 2 :core.status.hard=\"中等\";\n\t\tbreak;\t\n\tcase 3 :core.status.hard=\"困难\";\n\t\tbreak;\t\n\tcase 4 :core.status.hard=\"噩梦\";\n\t\tbreak;\t\n\tcase 5 :core.status.hard=\"作弊\";\n\t\tbreak;\n}\n}"
},
{
"type": "function",
"function": "function(){\ncore.dom.wholeCtx.fillRect(0, 0, core.dom.whole.width, core.dom.whole.height);\n}"
},
{
"type": "choices",
"text": "是否跳过开始剧情",
@ -788,17 +246,6 @@ main.floors.nandu=
{
"text": "否",
"action": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 0,
"keep": true
},
{
"type": "changeFloor",
"floorId": "QISHI",

View File

@ -99,7 +99,7 @@ main.floors.shenhai=
{
"type": "changePos",
"loc": [
5,
6,
3
],
"direction": "up"
@ -120,7 +120,7 @@ main.floors.shenhai=
"number": "npc0",
"loc": [
[
5,
6,
2
]
]
@ -296,7 +296,7 @@ main.floors.shenhai=
"type": "animate",
"name": "sangang",
"loc": [
9,
10,
3
]
},
@ -381,7 +381,7 @@ main.floors.shenhai=
"type": "animate",
"name": "shenglvehao",
"loc": [
9,
10,
3
]
},

View File

@ -130,7 +130,7 @@ main.floors.tading=
"type": "animate",
"name": "meiqishibianshen",
"loc": [
6,
7,
3
]
},
@ -139,7 +139,7 @@ main.floors.tading=
"number": "341",
"loc": [
[
6,
7,
3
]
]
@ -210,7 +210,7 @@ main.floors.tading=
"type": "animate",
"name": "xiaoshi",
"loc": [
5,
6,
3
]
},
@ -219,7 +219,7 @@ main.floors.tading=
"number": "E342",
"loc": [
[
5,
6,
3
]
]
@ -245,7 +245,7 @@ main.floors.tading=
"type": "animate",
"name": "xiaoshi",
"loc": [
7,
8,
4
]
},
@ -254,7 +254,7 @@ main.floors.tading=
"number": "E340",
"loc": [
[
7,
8,
4
]
]
@ -283,7 +283,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
6,
7,
3
],
"time": 500,
@ -296,7 +296,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
5,
6,
3
],
"time": 500,
@ -309,7 +309,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
7,
8,
4
],
"time": 500,
@ -351,7 +351,7 @@ main.floors.tading=
"type": "animate",
"name": "gantanhao",
"loc": [
6,
7,
4
],
"async": true
@ -360,7 +360,7 @@ main.floors.tading=
"type": "animate",
"name": "gantanhao",
"loc": [
5,
6,
5
],
"async": true
@ -369,7 +369,7 @@ main.floors.tading=
"type": "animate",
"name": "gantanhao",
"loc": [
7,
8,
5
],
"async": true
@ -384,7 +384,7 @@ main.floors.tading=
{
"type": "jumpHero",
"loc": [
7,
8,
4
],
"time": 300
@ -392,7 +392,7 @@ main.floors.tading=
{
"type": "jumpHero",
"loc": [
6,
7,
3
],
"time": 300
@ -400,7 +400,7 @@ main.floors.tading=
{
"type": "jumpHero",
"loc": [
6,
7,
1
],
"time": 300
@ -417,7 +417,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
6,
7,
4
],
"time": 500,
@ -430,7 +430,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
5,
6,
5
],
"time": 500,
@ -443,7 +443,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
7,
8,
5
],
"time": 500,
@ -460,15 +460,6 @@ main.floors.tading=
"type": "sleep",
"time": 500
},
{
"type": "animate",
"name": "shenglvehao",
"loc": [
5,
3
],
"async": true
},
{
"type": "animate",
"name": "shenglvehao",
@ -487,6 +478,15 @@ main.floors.tading=
],
"async": true
},
{
"type": "animate",
"name": "shenglvehao",
"loc": [
8,
3
],
"async": true
},
{
"type": "waitAsync"
},
@ -541,7 +541,7 @@ main.floors.tading=
"number": "thief",
"loc": [
[
6,
7,
7
]
]
@ -549,7 +549,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
6,
7,
7
],
"time": 500,
@ -719,7 +719,7 @@ main.floors.tading=
"type": "animate",
"name": "shenglvehao",
"loc": [
6,
7,
6
]
},
@ -784,7 +784,7 @@ main.floors.tading=
{
"type": "move",
"loc": [
6,
7,
6
],
"time": 500,
@ -811,7 +811,7 @@ main.floors.tading=
"type": "setBlockOpacity",
"loc": [
[
2,
3,
4
]
],
@ -826,7 +826,7 @@ main.floors.tading=
"type": "animate",
"name": "gantanhao",
"loc": [
6,
7,
3
]
},
@ -889,7 +889,7 @@ main.floors.tading=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -120,7 +120,7 @@ main.floors.tawai=
"type": "changeFloor",
"floorId": "PIANTOU1",
"loc": [
-1,
0,
0
],
"time": 0
@ -128,7 +128,7 @@ main.floors.tawai=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}

View File

@ -23,7 +23,7 @@ main.floors.wangyang30=
{
"type": "trigger",
"loc": [
0,
1,
0
]
}
@ -521,14 +521,14 @@ main.floors.wangyang30=
"type": "changeFloor",
"floorId": "MT30",
"loc": [
5,
6,
2
]
},
{
"type": "trigger",
"loc": [
12,
13,
0
]
}

View File

@ -19,8 +19,8 @@ main.floors.xietu=
"7,11": {
"floorId": "MT25",
"loc": [
1,
11
2,
10
]
}
},

View File

@ -19,7 +19,7 @@ main.floors.xuetan=
"7,9": {
"floorId": "MT36",
"loc": [
11,
12,
1
]
}

View File

@ -308,7 +308,7 @@ main.floors.yanjiusuo=
"12,11": {
"floorId": "MT4",
"loc": [
7,
9,
4
],
"time": 200

View File

@ -12,7 +12,7 @@ main.floors.zhenhong=
{
"type": "trigger",
"loc": [
6,
7,
4
]
}
@ -64,7 +64,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dian",
"loc": [
6,
7,
4
]
},
@ -89,7 +89,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dian",
"loc": [
6,
7,
4
]
},
@ -152,7 +152,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dian",
"loc": [
6,
7,
4
]
},
@ -245,7 +245,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dian",
"loc": [
6,
7,
7
]
},
@ -306,7 +306,7 @@ main.floors.zhenhong=
{
"type": "move",
"loc": [
6,
7,
4
],
"time": 500,
@ -319,14 +319,14 @@ main.floors.zhenhong=
"type": "animate",
"name": "hand",
"loc": [
6,
7,
7
]
},
{
"type": "jumpHero",
"loc": [
6,
7,
5
],
"time": 500
@ -339,7 +339,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dajian",
"loc": [
6,
7,
5
],
"async": true
@ -347,7 +347,7 @@ main.floors.zhenhong=
{
"type": "changePos",
"loc": [
6,
7,
5
],
"direction": "down"
@ -362,14 +362,14 @@ main.floors.zhenhong=
"type": "animate",
"name": "dajian",
"loc": [
6,
7,
4
]
},
{
"type": "changePos",
"loc": [
6,
7,
4
],
"direction": "down"
@ -384,14 +384,14 @@ main.floors.zhenhong=
"type": "animate",
"name": "dajian",
"loc": [
6,
7,
3
]
},
{
"type": "changePos",
"loc": [
6,
7,
3
],
"direction": "down"
@ -406,7 +406,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dajian",
"loc": [
6,
7,
2
]
},
@ -417,7 +417,7 @@ main.floors.zhenhong=
{
"type": "jumpHero",
"loc": [
5,
6,
3
],
"time": 500
@ -431,7 +431,7 @@ main.floors.zhenhong=
{
"type": "changePos",
"loc": [
5,
6,
6
],
"direction": "right"
@ -451,7 +451,7 @@ main.floors.zhenhong=
{
"type": "move",
"loc": [
6,
7,
6
],
"time": 500,
@ -467,7 +467,7 @@ main.floors.zhenhong=
{
"type": "changePos",
"loc": [
5,
6,
5
],
"direction": "down"
@ -475,7 +475,7 @@ main.floors.zhenhong=
{
"type": "jumpHero",
"loc": [
6,
7,
5
],
"time": 500,
@ -508,7 +508,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "haizhitiejian",
"loc": [
6,
7,
7
]
},
@ -520,7 +520,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "fadong1",
"loc": [
6,
7,
7
]
},
@ -528,7 +528,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dajian",
"loc": [
6,
7,
5
]
},
@ -556,7 +556,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "haizhitiejian",
"loc": [
6,
7,
7
]
},
@ -568,7 +568,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "fadong1",
"loc": [
6,
7,
7
]
},
@ -576,7 +576,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "dajian",
"loc": [
6,
7,
5
]
},
@ -593,7 +593,7 @@ main.floors.zhenhong=
{
"type": "move",
"loc": [
6,
7,
7
],
"time": 500,
@ -656,7 +656,7 @@ main.floors.zhenhong=
{
"type": "move",
"loc": [
6,
7,
3
],
"time": 500,
@ -669,7 +669,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "zhendajian",
"loc": [
6,
7,
5
]
},
@ -680,7 +680,7 @@ main.floors.zhenhong=
{
"type": "changePos",
"loc": [
6,
7,
5
],
"direction": "up"
@ -705,7 +705,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "haizhitiejian",
"loc": [
6,
7,
4
]
},
@ -717,7 +717,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "zhendajian",
"loc": [
6,
7,
5
]
},
@ -741,7 +741,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "haizhitiejian",
"loc": [
6,
7,
4
]
},
@ -753,14 +753,14 @@ main.floors.zhenhong=
"type": "animate",
"name": "zhendajian",
"loc": [
6,
7,
5
]
},
{
"type": "changePos",
"loc": [
6,
7,
5
],
"direction": "up"
@ -775,7 +775,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "fadong4",
"loc": [
6,
7,
8
]
},
@ -822,7 +822,7 @@ main.floors.zhenhong=
"type": "animate",
"name": "hainazhijian",
"loc": [
6,
7,
4
]
},
@ -833,7 +833,7 @@ main.floors.zhenhong=
{
"type": "move",
"loc": [
6,
7,
4
],
"time": 500,
@ -888,7 +888,7 @@ main.floors.zhenhong=
{
"type": "move",
"loc": [
6,
7,
3
],
"time": 500,
@ -902,7 +902,7 @@ main.floors.zhenhong=
"number": "ground",
"loc": [
[
6,
7,
7
]
]
@ -944,7 +944,7 @@ main.floors.zhenhong=
"number": "pickaxe",
"loc": [
[
6,
7,
3
]
]
@ -953,7 +953,7 @@ main.floors.zhenhong=
"type": "hide",
"loc": [
[
6,
7,
7
]
],
@ -963,7 +963,7 @@ main.floors.zhenhong=
"type": "hide",
"loc": [
[
6,
7,
4
]
],
@ -976,7 +976,7 @@ main.floors.zhenhong=
"7,9": {
"floorId": "MT19",
"loc": [
10,
11,
2
]
}

View File

@ -1651,7 +1651,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
fill(core.itemCount('redKey'), 130, 280 + 52, '#E9967A');
fill('黑钥匙', 55, 280 + 78, '#000000');
fill(core.itemCount('greenKey'), 130, 280 + 78, '#000000');
core.drawImage(ctx, core.material.images.images[['00005.png','00001.png','00002.png','00003.png','00004.png','00005.png'][flags.hard || 0]], 0, 423);
core.drawImage(ctx, core.material.images.images[['00005.png','00001.png','00002.png','00003.png','00004.png','00005.png'][flags.hard || 0]], 0, 423 - [0,10,10,0,0,0][flags.hard || 0]);
if (flags.poison) fill("中毒", 5, 60, '#00CD00');
if (flags.weak) fill("衰弱", 50, 60, '#FF1493');
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 79 KiB

BIN
project/images/black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 KiB

After

Width:  |  Height:  |  Size: 456 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Some files were not shown because too many files have changed in this diff Show More