diff --git a/_server/CodeMirror/defs.js b/_server/CodeMirror/defs.js index 8e0ee9f..5ade850 100644 --- a/_server/CodeMirror/defs.js +++ b/_server/CodeMirror/defs.js @@ -3963,6 +3963,10 @@ var terndefs_f6783a0a_522d_417e_8407_94c67b692e50 = [ "!doc": "显示一张图片
例如: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
code: 图片编号,为不大于50的正整数,加上100后就是对应画布层的z值,较大的会遮罩较小的,注意色调层的z值为125,UI层为140
image: 图片文件名(可以是全塔属性中映射前的中文名)或图片对象(见上面的例子)
sloc: 一行且至多四列的数组,表示从原图裁剪的左上角坐标和宽高,可选
loc: 一行且至多四列的数组,表示图片在视野中的左上角坐标和宽高,可选
opacityVal: 不透明度,为小于1的正数。不填视为1
time: 淡入时间,单位为毫秒。不填视为0
callback: 图片完全显示出来后的回调函数,可选", "!type": "fn(code: number, image: string|image, sloc?: [number], loc?: [number], opacityVal?: number, time?: number, callback?: fn())" }, + "showImage2": { + "!doc": "显示一张图片,可以在状态栏显示
例如: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
code: 图片编号,为不大于50的正整数,加上100后就是对应画布层的z值,较大的会遮罩较小的,注意色调层的z值为125,UI层为140
image: 图片文件名(可以是全塔属性中映射前的中文名)或图片对象(见上面的例子)
sloc: 一行且至多四列的数组,表示从原图裁剪的左上角坐标和宽高,可选
loc: 一行且至多四列的数组,表示图片在视野中的左上角坐标和宽高,可选
opacityVal: 不透明度,为小于1的正数。不填视为1
time: 淡入时间,单位为毫秒。不填视为0
callback: 图片完全显示出来后的回调函数,可选", + "!type": "fn(code: number, image: string|image, sloc?: [number], loc?: [number], opacityVal?: number, time?: number, callback?: fn())" + }, "getItem": { "!doc": "获得道具并提示,如果填写了坐标就会删除该点的该道具
例如:core.getItem('book'); // 获得敌人手册并提示
id: 道具id,必填
num: 获得的数量,不填视为1,填了就别填坐标了
x: 道具的横坐标,可选
y: 道具的纵坐标,可选
callback: 回调函数,可选", "!type": "fn(id: string, num?: number, x?: number, y?: number, callback?: fn())" diff --git a/_server/MotaAction.g4 b/_server/MotaAction.g4 index bcbbbe9..b6f2c7c 100644 --- a/_server/MotaAction.g4 +++ b/_server/MotaAction.g4 @@ -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 diff --git a/_server/MotaActionParser.js b/_server/MotaActionParser.js index bb16fac..d0434ce 100644 --- a/_server/MotaActionParser.js +++ b/_server/MotaActionParser.js @@ -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]); diff --git a/_server/config.json b/_server/config.json index ef8c2e4..aab5739 100644 --- a/_server/config.json +++ b/_server/config.json @@ -1 +1 @@ -{"viewportLoc":[0,0],"editorLastFloorId":"QISHI"} \ No newline at end of file +{"viewportLoc":[0,0],"editorLastFloorId":"nandu"} \ No newline at end of file diff --git a/_server/editor_blockly.js b/_server/editor_blockly.js index 6933064..fd71c38 100644 --- a/_server/editor_blockly.js +++ b/_server/editor_blockly.js @@ -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] }]); diff --git a/_server/editor_blocklyconfig.js b/_server/editor_blocklyconfig.js index 5d95776..3314517 100644 --- a/_server/editor_blocklyconfig.js +++ b/_server/editor_blocklyconfig.js @@ -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(), diff --git a/project/data.js b/project/data.js index 51b689e..80b73cc 100644 --- a/project/data.js +++ b/project/data.js @@ -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", diff --git a/project/floors/QISHI.js b/project/floors/QISHI.js index daff25e..0497d02 100644 --- a/project/floors/QISHI.js +++ b/project/floors/QISHI.js @@ -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, diff --git a/project/floors/nandu.js b/project/floors/nandu.js index 0af1343..9b4c94c 100644 --- a/project/floors/nandu.js +++ b/project/floors/nandu.js @@ -216,17 +216,6 @@ main.floors.nandu= } ] }, - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 1 - ], - "time": 0, - "keep": true - }, { "type": "hideImage", "code": 6, @@ -246,6 +235,10 @@ main.floors.nandu= "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": "是否跳过开始剧情", @@ -253,17 +246,6 @@ main.floors.nandu= { "text": "否", "action": [ - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 1 - ], - "time": 0, - "keep": true - }, { "type": "changeFloor", "floorId": "QISHI", diff --git a/project/images/black.png b/project/images/black.png new file mode 100644 index 0000000..59e1e9d Binary files /dev/null and b/project/images/black.png differ diff --git a/project/images/dingxiangplay.png b/project/images/dingxiangplay.png index f33378d..055e337 100644 Binary files a/project/images/dingxiangplay.png and b/project/images/dingxiangplay.png differ diff --git a/project/images/fuyi.png b/project/images/fuyi.png index 7320d3b..794cf34 100644 Binary files a/project/images/fuyi.png and b/project/images/fuyi.png differ diff --git a/project/images/gongzhubaozoudahan.png b/project/images/gongzhubaozoudahan.png index 7df62b3..59e9906 100644 Binary files a/project/images/gongzhubaozoudahan.png and b/project/images/gongzhubaozoudahan.png differ diff --git a/project/images/gongzhubaozoulianhong.png b/project/images/gongzhubaozoulianhong.png index 1136d98..1212941 100644 Binary files a/project/images/gongzhubaozoulianhong.png and b/project/images/gongzhubaozoulianhong.png differ diff --git a/project/images/gongzhubaozousha.png b/project/images/gongzhubaozousha.png index 8060dfc..5bfc2ac 100644 Binary files a/project/images/gongzhubaozousha.png and b/project/images/gongzhubaozousha.png differ diff --git a/project/images/gongzhubaozouxiu.png b/project/images/gongzhubaozouxiu.png index 2b99bce..f361e69 100644 Binary files a/project/images/gongzhubaozouxiu.png and b/project/images/gongzhubaozouxiu.png differ diff --git a/project/images/gongzhubuzaihu.png b/project/images/gongzhubuzaihu.png index 6e46fb5..907ca09 100644 Binary files a/project/images/gongzhubuzaihu.png and b/project/images/gongzhubuzaihu.png differ diff --git a/project/images/gongzhuheihua.png b/project/images/gongzhuheihua.png index 2a8e92f..3367e6b 100644 Binary files a/project/images/gongzhuheihua.png and b/project/images/gongzhuheihua.png differ diff --git a/project/images/gongzhujiao.png b/project/images/gongzhujiao.png index 932fdab..353c2e6 100644 Binary files a/project/images/gongzhujiao.png and b/project/images/gongzhujiao.png differ diff --git a/project/images/gongzhulianhong.png b/project/images/gongzhulianhong.png index 3ca98ba..d10bbdc 100644 Binary files a/project/images/gongzhulianhong.png and b/project/images/gongzhulianhong.png differ diff --git a/project/images/gongzhupinghe.png b/project/images/gongzhupinghe.png index e51b5ca..0bfa3c6 100644 Binary files a/project/images/gongzhupinghe.png and b/project/images/gongzhupinghe.png differ diff --git a/project/images/gongzhuxiao.png b/project/images/gongzhuxiao.png index 5fe1bcc..7f2e7dd 100644 Binary files a/project/images/gongzhuxiao.png and b/project/images/gongzhuxiao.png differ diff --git a/project/images/gongzhuzhending.png b/project/images/gongzhuzhending.png index 68781cb..b9888c9 100644 Binary files a/project/images/gongzhuzhending.png and b/project/images/gongzhuzhending.png differ diff --git a/project/images/haizhishijian.png b/project/images/haizhishijian.png index 8ec42dc..deaa745 100644 Binary files a/project/images/haizhishijian.png and b/project/images/haizhishijian.png differ diff --git a/project/images/heiyun.jpg b/project/images/heiyun.jpg index 1dcc821..0b2985a 100644 Binary files a/project/images/heiyun.jpg and b/project/images/heiyun.jpg differ diff --git a/project/images/jiekedajiao.png b/project/images/jiekedajiao.png index 697c27f..d80bb63 100644 Binary files a/project/images/jiekedajiao.png and b/project/images/jiekedajiao.png differ diff --git a/project/images/jiekedajiao2.png b/project/images/jiekedajiao2.png index bdaabbc..ceabef6 100644 Binary files a/project/images/jiekedajiao2.png and b/project/images/jiekedajiao2.png differ diff --git a/project/images/jiekexiaohei.png b/project/images/jiekexiaohei.png index eb56075..24464c6 100644 Binary files a/project/images/jiekexiaohei.png and b/project/images/jiekexiaohei.png differ diff --git a/project/images/jiekeyilv.png b/project/images/jiekeyilv.png index dfe9586..5053897 100644 Binary files a/project/images/jiekeyilv.png and b/project/images/jiekeyilv.png differ diff --git a/project/images/jiekezixin.png b/project/images/jiekezixin.png index ebda141..01d878e 100644 Binary files a/project/images/jiekezixin.png and b/project/images/jiekezixin.png differ diff --git a/project/images/kulouzhanshi.png b/project/images/kulouzhanshi.png index c39d054..7b9554a 100644 Binary files a/project/images/kulouzhanshi.png and b/project/images/kulouzhanshi.png differ diff --git a/project/images/li.png b/project/images/li.png index bd6fc18..aab54d5 100644 Binary files a/project/images/li.png and b/project/images/li.png differ diff --git a/project/images/lidaxiao.png b/project/images/lidaxiao.png index 61b189a..f329f97 100644 Binary files a/project/images/lidaxiao.png and b/project/images/lidaxiao.png differ diff --git a/project/images/lvshe.png b/project/images/lvshe.png index 6556e59..cf7604f 100644 Binary files a/project/images/lvshe.png and b/project/images/lvshe.png differ diff --git a/project/images/mei.png b/project/images/mei.png index 09cd687..65d8d63 100644 Binary files a/project/images/mei.png and b/project/images/mei.png differ diff --git a/project/images/meibugaoxing.png b/project/images/meibugaoxing.png index 11242c4..7cf9707 100644 Binary files a/project/images/meibugaoxing.png and b/project/images/meibugaoxing.png differ diff --git a/project/images/meidaxiao.png b/project/images/meidaxiao.png index 3e60fcc..df2620a 100644 Binary files a/project/images/meidaxiao.png and b/project/images/meidaxiao.png differ diff --git a/project/images/meimao.png b/project/images/meimao.png index 15cd2e7..2795062 100644 Binary files a/project/images/meimao.png and b/project/images/meimao.png differ diff --git a/project/images/meishihuai.png b/project/images/meishihuai.png index f4a811c..88b1606 100644 Binary files a/project/images/meishihuai.png and b/project/images/meishihuai.png differ diff --git a/project/images/mingsha.png b/project/images/mingsha.png index 5297155..d92b269 100644 Binary files a/project/images/mingsha.png and b/project/images/mingsha.png differ diff --git a/project/images/molong.png b/project/images/molong.png index 7b70708..0f28193 100644 Binary files a/project/images/molong.png and b/project/images/molong.png differ diff --git a/project/images/mudi.jpg b/project/images/mudi.jpg index bc96d71..02b7b0a 100644 Binary files a/project/images/mudi.jpg and b/project/images/mudi.jpg differ diff --git a/project/images/shaohuheihua.png b/project/images/shaohuheihua.png index a6d0e50..d304fc7 100644 Binary files a/project/images/shaohuheihua.png and b/project/images/shaohuheihua.png differ diff --git a/project/images/shaohujinzhang.png b/project/images/shaohujinzhang.png index d4c1d96..4c8aa37 100644 Binary files a/project/images/shaohujinzhang.png and b/project/images/shaohujinzhang.png differ diff --git a/project/images/shaohuliuhan.png b/project/images/shaohuliuhan.png index 6fcf88f..8d0188c 100644 Binary files a/project/images/shaohuliuhan.png and b/project/images/shaohuliuhan.png differ diff --git a/project/images/shaohusikao.png b/project/images/shaohusikao.png index 7415ad1..7b15937 100644 Binary files a/project/images/shaohusikao.png and b/project/images/shaohusikao.png differ diff --git a/project/images/shaohuxiao.png b/project/images/shaohuxiao.png index 3142c15..65ab9de 100644 Binary files a/project/images/shaohuxiao.png and b/project/images/shaohuxiao.png differ diff --git a/project/images/shaohuyilv.png b/project/images/shaohuyilv.png index 136f0bc..c36e7d5 100644 Binary files a/project/images/shaohuyilv.png and b/project/images/shaohuyilv.png differ diff --git a/project/images/shaohuzixin.png b/project/images/shaohuzixin.png index 4e01d75..7ded7fc 100644 Binary files a/project/images/shaohuzixin.png and b/project/images/shaohuzixin.png differ diff --git a/project/images/shaohuziya.png b/project/images/shaohuziya.png index 3dac574..2ea5d0c 100644 Binary files a/project/images/shaohuziya.png and b/project/images/shaohuziya.png differ diff --git a/project/images/sheng.png b/project/images/sheng.png index 545fe56..d706a19 100644 Binary files a/project/images/sheng.png and b/project/images/sheng.png differ diff --git a/project/images/shengfen.png b/project/images/shengfen.png index c0dd809..a3f33aa 100644 Binary files a/project/images/shengfen.png and b/project/images/shengfen.png differ diff --git a/project/images/shengxiao.png b/project/images/shengxiao.png index c9496ab..3ef77e6 100644 Binary files a/project/images/shengxiao.png and b/project/images/shengxiao.png differ diff --git a/project/images/shijian.png b/project/images/shijian.png index 6385d45..0a94918 100644 Binary files a/project/images/shijian.png and b/project/images/shijian.png differ diff --git a/project/images/wangyangdan.png b/project/images/wangyangdan.png index 6f22034..7e8f1f3 100644 Binary files a/project/images/wangyangdan.png and b/project/images/wangyangdan.png differ diff --git a/project/images/wangyangqianxiao.png b/project/images/wangyangqianxiao.png index ce51d6e..bda82ca 100644 Binary files a/project/images/wangyangqianxiao.png and b/project/images/wangyangqianxiao.png differ diff --git a/project/images/wangyangyouyu.png b/project/images/wangyangyouyu.png index ea33b31..d46b753 100644 Binary files a/project/images/wangyangyouyu.png and b/project/images/wangyangyouyu.png differ diff --git a/project/images/wangyangziya.png b/project/images/wangyangziya.png index dd7af23..d10c6e4 100644 Binary files a/project/images/wangyangziya.png and b/project/images/wangyangziya.png differ diff --git a/project/images/wangyue.png b/project/images/wangyue.png index 5e96d63..6b056e3 100644 Binary files a/project/images/wangyue.png and b/project/images/wangyue.png differ diff --git a/project/images/wangyueshengqi.png b/project/images/wangyueshengqi.png index c0422df..0316d45 100644 Binary files a/project/images/wangyueshengqi.png and b/project/images/wangyueshengqi.png differ diff --git a/project/images/wangyuexiao.png b/project/images/wangyuexiao.png index 3dca930..8dc817f 100644 Binary files a/project/images/wangyuexiao.png and b/project/images/wangyuexiao.png differ diff --git a/project/images/xianzi.png b/project/images/xianzi.png index 9497197..dd66f65 100644 Binary files a/project/images/xianzi.png and b/project/images/xianzi.png differ diff --git a/project/images/xianzileng.png b/project/images/xianzileng.png index a459b5b..287462b 100644 Binary files a/project/images/xianzileng.png and b/project/images/xianzileng.png differ diff --git a/project/images/xianzilianhong.png b/project/images/xianzilianhong.png index 1bfa852..79e3cf3 100644 Binary files a/project/images/xianzilianhong.png and b/project/images/xianzilianhong.png differ diff --git a/project/images/xianziwunai.png b/project/images/xianziwunai.png index 7da5f84..c0548fd 100644 Binary files a/project/images/xianziwunai.png and b/project/images/xianziwunai.png differ diff --git a/project/images/xueguang.jpg b/project/images/xueguang.jpg index 536feab..0d5867f 100644 Binary files a/project/images/xueguang.jpg and b/project/images/xueguang.jpg differ diff --git a/project/images/yecheng.jpg b/project/images/yecheng.jpg index ac8fc25..a830b1b 100644 Binary files a/project/images/yecheng.jpg and b/project/images/yecheng.jpg differ diff --git a/project/images/yeming.png b/project/images/yeming.png index 24df7f5..42490c7 100644 Binary files a/project/images/yeming.png and b/project/images/yeming.png differ diff --git a/project/images/yinyuecun.jpg b/project/images/yinyuecun.jpg index 11750fd..199a8ae 100644 Binary files a/project/images/yinyuecun.jpg and b/project/images/yinyuecun.jpg differ diff --git a/project/images/yinyuecunheibai.jpg b/project/images/yinyuecunheibai.jpg index 33473ff..c7f8e8b 100644 Binary files a/project/images/yinyuecunheibai.jpg and b/project/images/yinyuecunheibai.jpg differ diff --git a/project/images/yueya.jpg b/project/images/yueya.jpg index 25675b0..49473ca 100644 Binary files a/project/images/yueya.jpg and b/project/images/yueya.jpg differ diff --git a/project/images/外围边框.png b/project/images/外围边框.png deleted file mode 100644 index 222828e..0000000 Binary files a/project/images/外围边框.png and /dev/null differ diff --git a/project/images/夜城标题.JPG b/project/images/夜城标题.JPG new file mode 100644 index 0000000..7270c54 Binary files /dev/null and b/project/images/夜城标题.JPG differ diff --git a/project/images/无标题.png b/project/images/无标题.png deleted file mode 100644 index 174204e..0000000 Binary files a/project/images/无标题.png and /dev/null differ diff --git a/project/plugins.js b/project/plugins.js index 2f3d54a..8b47807 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -138,6 +138,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = gameGroup.style.height = totalHeight + "px"; gameGroup.style.left = (obj.clientWidth - totalWidth) / 2 + "px"; gameGroup.style.top = (obj.clientHeight - totalHeight) / 2 + "px"; + gameGroup.style.overflow = "hidden"; var whole = core.dom.whole; whole.style.width = totalWidth + "px"; whole.style.height = totalHeight + "px"; @@ -223,6 +224,84 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.animateFrame.globalTime = timestamp; } core.control.registerAnimationFrame("globalAnimate", true, core.control._animationFrame_globalAnimate); + core.ui.createCanvas2 = function (name, x, y, width, height, z) { + // 如果画布已存在则直接调用 + if (core.dymCanvas[name]) { + core.deleteCanvas(name); + } + var newCanvas = document.createElement("canvas"); + newCanvas.id = name; + newCanvas.style.display = 'block'; + newCanvas.setAttribute("_left", x); + newCanvas.setAttribute("_top", y); + newCanvas.style.width = width * core.domStyle.scale + 'px'; + newCanvas.style.height = height * core.domStyle.scale + 'px'; + newCanvas.style.left = x * core.domStyle.scale + 'px'; + newCanvas.style.top = y * core.domStyle.scale + 'px'; + newCanvas.style.zIndex = z; + newCanvas.style.position = 'absolute'; + newCanvas.style.pointerEvents = 'none'; + core.dymCanvas[name] = newCanvas.getContext('2d'); + core.maps._setHDCanvasSize(core.dymCanvas[name], width, height); + core.dom.gameGroup.appendChild(newCanvas); + return core.dymCanvas[name]; + } + core.ui.deleteCanvas = function (name) { + if (name instanceof Function) { + Object.keys(core.dymCanvas).forEach(function (one) { + if (name(one)) core.deleteCanvas(one); + }); + return; + } + + if (!core.dymCanvas[name]) return null; + var temp = core.dymCanvas[name].canvas.parentElement.id; + if (temp == "gameDraw") core.dom.gameDraw.removeChild(core.dymCanvas[name].canvas); + if (temp == "gameGroup") core.dom.gameGroup.removeChild(core.dymCanvas[name].canvas); + delete core.dymCanvas[name]; + } + core.events.showImage2 = function (code, image, sloc, loc, opacityVal, time, callback) { + var imageName = null; + if (typeof image == 'string') { + imageName = image; + if (image.endsWith(':x') || image.endsWith(':y') || image.endsWith(':o')) { + image = image.substring(0, image.length - 2); + } + image = core.getMappedName(image); + image = core.material.images.images[image]; + } + if (!image) { + if (callback) callback(); + return; + } + sloc = sloc || []; + var sx = core.calValue(sloc[0]) || 0, sy = core.calValue(sloc[1]) || 0; + var sw = core.calValue(sloc[2]), sh = core.calValue(sloc[3]); + if (sw == null) sw = image.width; + if (sh == null) sh = image.height; + loc = loc || []; + var x = core.calValue(loc[0]) || 0, y = core.calValue(loc[1]) || 0; + var w = core.calValue(loc[2]), h = core.calValue(loc[3]); + if (w == null) w = sw; + if (h == null) h = sh; + var zIndex = code + 100; + time = time || 0; + var name = "image" + zIndex; + var ctx = core.ui.createCanvas2(name, x, y, w, h, zIndex); + core.drawImage(ctx, imageName == null ? image : imageName, sx, sy, sw, sh, 0, 0, w, h); + if (time == 0) { + core.setOpacity(name, opacityVal); + if (callback) callback(); + return; + } + core.setOpacity(name, 0); + this.moveImage(code, null, opacityVal, null, time, callback); + } + core.events._action_showImage2 = function (data, x, y, prefix) { + if (core.isReplaying()) data.time = 0; + this.__action_doAsyncFunc(data.async || data.time == 0, core.events.showImage2, + data.code, data.image + (data.reverse || ''), data.sloc, data.loc, data.opacity, data.time); + } }, "drawLight": function () { diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..d9b1808 --- /dev/null +++ b/readme.md @@ -0,0 +1,136 @@ +# 我的魔塔我做主之天塔 + +作者:凿神兽 原样板:7822 新样板:2.10 + +复刻者和测试: + +| | 名字 | uid | QQ | +| ------ | ------------ | ----- | ---------- | +| 发起者 | 北海小羊 | 3356 | 792953816 | +| 开发者 | 影法师 | 5289 | 1398341065 | +| 开发者 | bdf | 3823 | 1534039306 | +| 技术 | 见见 | 1009 | 513152205 | +| 测试 | 萌新一阶 | 12322 | 1289156007 | +| 测试 | StarInShadow | 9994 | 602651749 | +| 测试 | 袜子精Boris | 6653 | 1114752215 | +| 测试 | 米格 | 9050 | 2109192368 | +| 测试 | 复读机 | 18425 | 1591852880 | +| 测试 | 灵梦 | 1058 | 1132979514 | + +# 全163剧情点攻略 + +0. 开始剧情 5剧情点 +1. 0层 + 1.1 刚进入时领取3点 + 1.2 仙子在10层战斗完毕后20层战斗完毕前1点 + 1.3 黄钥匙处57F完毕后60F完毕前1点 +2. 1层 + 2.1 老头1点 无限制时间 +3. 5层 + 3.1 杰克 刚进入时3点 +4. 6层 + 4.1 左上老头1点 +5. 7层 + 5.1 左上商人57F完毕前1点 +6. 9层 + 6.1 刚进入时1点 +7. 10层 + 7.1 打BOSS前5点 +8. 神海 + 8.1 右边仙子-28F完毕前2点 +9. 13层 + 9.1 进入时遇杰克2点 + 9.2 左侧和杰克相遇5点 +10. 15层 + 10.1 下侧商人57F完毕前1点 +11. 16层 + 11.1 杰克20F完毕前1点 +12. 17层 + 12.1 左上老头1点 +13. 20层 + 13.1 打完boss5点 + 13.2 打完boss遇到杰克1点 +14. 侧台 + 14.1 左边仙子20层后30层前1点 + 14.2 右侧媚骑士-20层后-10层前3点 + 14.3 右侧杰克30层后39层前1点 +15. 21层 + 15.1 刚进入时杰克2点 + 15.2 28层后30层前右下侧杰克1点 +16. 22层 + 16.1 商人1+1=2点 + 16.2 左侧杰克26层后28层前1点 +17. 23层 + 17.1 刚进入时杰克2点 +18. 24层 + 18.1 刚进入时杰克1点 + 18.2 左侧蓝衣老人57层前1点 +19. 26层 + 19.1 刚进入时杰克2点 +20. 27层 + 20.1 访问22层左侧杰克 (16.2) 后,30层前1点 +21. 28层 + 21.1 刚进入时圣骑士2点 +22. 30层 + 22.1 打腐翼前5点 +23. 37层 + 23.1 蓝衣老人57层前1点 +24. 39层 + 24.1 杰克2点 +25. 40层 + 25.1 40层打腐翼剧情完毕后5点 +26. 42层 + 26.1 进入后1点 +27. 44层 + 27.1 右侧媚骑士4点 +28. 48层 + 28.1 48层上楼后剧情5点 + 28.2 48层上楼后下楼右侧杰克57层前2点 +29. 51层 + 29.1 进入后蓝衣老人5点 +30. 57层 + 30.1 进入后剧情5点 +31. 60层 + 31.1 杀死弑剑出现一大堆怪7点 +32. 61层 + 32.1 杰克(媚骑士)前3点 +33. 63层 + 33.1 进入后上面剧情3点 +34. 68层 + 34.1 进入后戾骑士剧情3点 +35. 剑阁 + 35.1 进入后蓝弑剑剧情5点 +36. 78层 + 36.1 进入杰克区3点 +37. 塔顶 + 37.1 初次进入后剧情10点,并进入地下区 + 37.2 -28F后-20F前公主2点 +38. -40层 + 38.1 初次进入后公主2点 +39. -41层 + 39.1 初次进入后公主2点 +40. -43层 + 40.1 初次进入后角尊1点 +41. -44层 + 41.1 初次进入后杰克1点 +42. -32层 + 42.1 初次进入后业命1点 + 42.2 进入怪物区后2点 +43. -30层 + 43.1 初次进入后业命1点 +44. 一重天 + 44.1 初次进入后业命和龙1点 +45. 六重天 + 45.1 打龙-10F后3点 +46. -28层 + 46.1 boss打完后杰克剧情5点 +47. -27层 + 47.1 boss打完后2点 +48. -25层 + 48.1 初次进入后2点 +49. -20层 + 49.1 打完媚骑士3点 +50. -10层 + 50.1 打完圣骑士3点 +51. 真炎 + 51.1 打完戾骑士3点 \ No newline at end of file