This commit is contained in:
wangzhou 2023-04-19 14:26:21 +08:00
parent 57909711ea
commit 8fdfe6b4c8
125 changed files with 4735 additions and 335 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
project/bgms/baiying.mp3 Normal file

Binary file not shown.

BIN
project/bgms/bewithyou.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
project/bgms/bgm3.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
project/bgms/cz.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
project/bgms/fate.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
project/bgms/guduhy.mp3 Normal file

Binary file not shown.

BIN
project/bgms/haibian.mp3 Normal file

Binary file not shown.

BIN
project/bgms/heidian.mp3 Normal file

Binary file not shown.

BIN
project/bgms/jimeiren.mp3 Normal file

Binary file not shown.

BIN
project/bgms/meimei.mp3 Normal file

Binary file not shown.

BIN
project/bgms/onenight.mp3 Normal file

Binary file not shown.

BIN
project/bgms/qingchen.mp3 Normal file

Binary file not shown.

BIN
project/bgms/qishiwang.mp3 Normal file

Binary file not shown.

BIN
project/bgms/richu.mp3 Normal file

Binary file not shown.

BIN
project/bgms/rongyan.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
project/bgms/shengli.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
project/bgms/yinghua.mp3 Normal file

Binary file not shown.

BIN
project/bgms/yinghuo.mp3 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -2,21 +2,82 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
{
"main": {
"floorIds": [
"sample0",
"sample1",
"sample2",
"MT0"
"MT0",
"MT1",
"MT2",
"MT3",
"MT4",
"MT5",
"MT6",
"MT7",
"MT8",
"MT9",
"MT10",
"JQ2",
"JQ1",
"ND1",
"MT11",
"MT12",
"MT13",
"MT14",
"MT15",
"MT16",
"MT17",
"MT18",
"MT19",
"MT20",
"MT21",
"MT22",
"MT23",
"MT24",
"MT25"
],
"floorPartitions": [],
"images": [
"1.jpeg",
"2.jpeg",
"3.png",
"4.jpg",
"5.jpg",
"6.jpeg",
"7.jpg",
"8.jpg",
"9.jpeg",
"bear.png",
"bg.jpg",
"c9aabd97530e12a0c344bc2cc5095dea.jpeg",
"dragon.png",
"hero.png",
"hero1.png",
"hero2.png",
"hero3.png",
"hero4.png",
"winskin.png"
],
"tilesets": [
"magictower.png"
"magictower.png",
"modern6.png",
"modern5.png",
"modern22.png",
"modern18.png",
"dianti.png",
"Snowfield01.png",
"Riqueza.png",
"PlataformaDia.png",
"Mountain01.png",
"Map-Snowfield01.png",
"Map-ForestTown02.png",
"ForestTown01.png",
"Floresta2.png",
"Exterior.png",
"Environment-2.png",
"9.png",
"12.png",
"11.png",
"10.png",
"014-PostTown02.png",
"012-PortTown02.png",
"002-Woods01.png"
],
"animates": [
"hand",
@ -24,7 +85,33 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"zone"
],
"bgms": [
"bgm.mp3"
"baiying.mp3",
"bewithyou.mp3",
"bgm.mp3",
"bgm3.mp3",
"congtianerjiang.mp3",
"cz.mp3",
"dianguanghuoshi.mp3",
"fate.mp3",
"gaolikangzhi.mp3",
"guduhy.mp3",
"haibian.mp3",
"heidian.mp3",
"jimeiren.mp3",
"meimei.mp3",
"onenight.mp3",
"qingchen.mp3",
"qishiwang.mp3",
"richu.mp3",
"rongyan.mp3",
"rouhedeshou.mp3",
"shengli.mp3",
"shoushubaodan.mp3",
"wangqiuwangzi.mp3",
"xiarihuahuo.mp3",
"yinghua.mp3",
"yinghuo.mp3",
"yunitongzai.mp3"
],
"sounds": [
"attack.mp3",
@ -63,7 +150,6 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"炸弹": "bomb.mp3",
"飞行器": "centerFly.mp3",
"开关门": "door.mp3",
"上下楼": "floor.mp3",
"跳跃": "jump.mp3",
"破墙镐": "pickaxe.mp3",
"破冰镐": "icePickaxe.mp3",
@ -76,81 +162,39 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"商店": "shop.mp3",
"领域": "zone"
},
"levelChoose": [
{
"title": "简单",
"name": "Easy",
"hard": 1,
"color": [
64,
255,
85,
1
],
"action": [
{
"type": "comment",
"text": "在这里写该难度需执行的事件"
}
]
},
{
"title": "普通",
"name": "Normal",
"hard": 2,
"color": [
255,
221,
32,
1
],
"action": []
},
{
"title": "困难",
"name": "Hard",
"hard": 3,
"color": [
255,
68,
64,
1
],
"action": []
}
],
"levelChoose": null,
"equipName": [
"武器",
"盾牌"
],
"startBgm": null,
"startBgm": "bewithyou.mp3",
"styles": {
"startBackground": "project/images/bg.jpg",
"startVerticalBackground": "project/images/bg.jpg",
"startLogoStyle": "color: black",
"startLogoStyle": "color: white",
"startButtonsStyle": "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;",
"statusLeftBackground": "url(project/materials/ground.png) repeat",
"statusTopBackground": "url(project/materials/ground.png) repeat",
"toolsBackground": "black",
"borderColor": [
0,
0,
0,
1
],
"floorChangingStyle": "background-color: black; color: white",
"statusBarColor": [
255,
255,
255,
1
],
"borderColor": [
0,
0,
0,
1
],
"selectColor": [
255,
215,
0,
1
],
"floorChangingStyle": "background-color: black; color: white",
"font": "Verdana"
},
"splitImages": [
@ -163,21 +207,21 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
]
},
"firstData": {
"title": "魔塔样板",
"name": "template",
"title": "逐梦九天",
"name": "bdf1",
"version": "Ver 2.10.3",
"floorId": "sample0",
"floorId": "MT0",
"hero": {
"image": "hero.png",
"animate": false,
"name": "阳光",
"name": "bdf",
"lv": 1,
"hpmax": 9999,
"hp": 1000,
"manamax": -1,
"hpmax": null,
"hp": 1,
"manamax": null,
"mana": 0,
"atk": 100,
"def": 100,
"atk": 0,
"def": 0,
"mdef": 0,
"money": 0,
"exp": 0,
@ -550,11 +594,35 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
],
"startText": [
{
"type": "comment",
"text": "初始剧情"
"type": "setText",
"background": "winskin.png",
"time": 40
},
"Hi欢迎来到 HTML5 魔塔样板!\n\n本样板由艾之葵制作可以让你在不会写任何代码\n的情况下也能做出属于自己的H5魔塔",
"这里游戏开始时的剧情。\n\n你可以在这里写上自己的内容。\n赶快来试一试吧"
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 500,
"keep": true
},
{
"type": "while",
"condition": "1",
"data": [
{
"type": "insert",
"loc": [
11,
11
],
"floorId": "ND1"
}
]
}
],
"shops": [
{
@ -679,7 +747,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"levelUp": [
{
"need": "0",
"title": "",
"title": "婴儿",
"clear": true,
"action": [
{
"type": "comment",
@ -688,30 +757,102 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
]
},
{
"need": "20",
"title": "",
"need": "1",
"title": "1周岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "100"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "10"
"value": "1"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "10"
"value": "1"
}
]
},
{
"need": "40",
"title": "",
"need": "26",
"title": "2周岁",
"clear": true,
"action": [
{
"type": "tip",
"text": "恭喜升级"
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "2"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "2"
},
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "200"
}
]
},
{
"need": "30",
"title": "3周岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "350"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "4"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "4"
}
]
},
{
"need": "11",
"title": "3岁半",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "500"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "5"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "5"
}
]
}
@ -721,40 +862,41 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"lavaDamage": 100,
"poisonDamage": 10,
"weakValue": 20,
"redGem": 3,
"blueGem": 3,
"greenGem": 5,
"redPotion": 100,
"bluePotion": 250,
"yellowPotion": 500,
"greenPotion": 800,
"breakArmor": 0.9,
"counterAttack": 0.1,
"purify": 3,
"hatred": 2,
"redGem": 1,
"blueGem": 1,
"greenGem": 3,
"redPotion": 50,
"bluePotion": 100,
"yellowPotion": 200,
"greenPotion": 500,
"breakArmor": null,
"counterAttack": null,
"purify": null,
"hatred": null,
"animateSpeed": 300,
"moveSpeed": 100,
"statusCanvasRowsOnMobile": 3,
"floorChangeTime": 100
"floorChangeTime": 0
},
"flags": {
"statusBarItems": [
"enableFloor",
"enableName",
"enableLv",
"enableHP",
"enableMana",
"enableAtk",
"enableDef",
"enableMDef",
"enableMoney",
"enableExp",
"enableLevelUp",
"levelUpLeftMode",
"enableKeys",
"enablePZF",
"enableSkill"
"enablePZF"
],
"autoScale": true,
"extendToolbar": false,
"flyNearStair": true,
"flyNearStair": false,
"flyRecordPosition": false,
"itemFirstText": false,
"equipboxButton": false,
@ -764,12 +906,12 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"useLoop": false,
"startUsingCanvas": false,
"statusCanvas": false,
"enableEnemyPoint": true,
"enableGentleClick": true,
"enableEnemyPoint": false,
"enableGentleClick": false,
"ignoreChangeFloor": true,
"canGoDeadZone": false,
"enableMoveDirectly": true,
"enableRouteFolding": true,
"enableRouteFolding": false,
"disableShopOnDamage": false,
"blurFg": false,
"hideLeftStatusBar": false

View File

@ -1,9 +1,9 @@
var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
{
"greenSlime": {"name":"绿头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
"redSlime": {"name":"红头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[16,18],"value":10},
"blackSlime": {"name":"青头怪","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
"slimelord": {"name":"怪王","hp":100,"atk":120,"def":0,"money":10,"exp":0,"point":0,"special":[1,9]},
"greenSlime": {"name":"朦胧的感觉","hp":20,"atk":4,"def":0,"money":0,"exp":0,"point":0,"special":0},
"redSlime": {"name":"未知的周围","hp":30,"atk":8,"def":1,"money":0,"exp":0,"point":0,"special":[],"value":10},
"blackSlime": {"name":"未知的恐慌","hp":180,"atk":63,"def":6,"money":0,"exp":1,"point":0,"special":0},
"slimelord": {"name":"最初的记忆","hp":550,"atk":100,"def":10,"money":0,"exp":3,"point":0,"special":[]},
"bat": {"name":"小蝙蝠","hp":100,"atk":120,"def":0,"money":2,"exp":0,"point":0,"special":[1]},
"bigBat": {"name":"大蝙蝠","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":0},
"redBat": {"name":"红蝙蝠","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
@ -80,5 +80,25 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"bearDown": {"name":"熊出没","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"faceIds":{"down":"bearDown","left":"bearLeft","right":"bearRight","up":"bearUp"},"bigImage":"bear.png"},
"bearLeft": {"name":"熊出没","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"faceIds":{"down":"bearDown","left":"bearLeft","right":"bearRight","up":"bearUp"}},
"bearRight": {"name":"熊出没","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"faceIds":{"down":"bearDown","left":"bearLeft","right":"bearRight","up":"bearUp"}},
"bearUp": {"name":"熊出没","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"faceIds":{"down":"bearDown","left":"bearLeft","right":"bearRight","up":"bearUp"}}
"bearUp": {"name":"熊出没","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[],"faceIds":{"down":"bearDown","left":"bearLeft","right":"bearRight","up":"bearUp"}},
"E343": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E344": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E345": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E346": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E347": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E348": {"name":"细微的感觉","hp":50,"atk":14,"def":2,"money":0,"exp":1,"point":0,"special":[]},
"E349": {"name":"未知的事物","hp":88,"atk":25,"def":3,"money":0,"exp":1,"point":0,"special":[]},
"E350": {"name":"行走的困难","hp":70,"atk":20,"def":2,"money":0,"exp":1,"point":0,"special":[]},
"E351": {"name":"轻微的痛感","hp":120,"atk":38,"def":4,"money":0,"exp":1,"point":0,"special":[]},
"E352": {"name":"说话的接触","hp":150,"atk":51,"def":5,"money":0,"exp":1,"point":0,"special":[]},
"E353": {"name":"不明的难受","hp":140,"atk":45,"def":5,"money":0,"exp":1,"point":0,"special":[]},
"E354": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E355": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E356": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E357": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E358": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E359": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E360": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E361": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E412": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}
}

140
project/floors/JQ1.js Normal file
View File

@ -0,0 +1,140 @@
main.floors.JQ1=
{
"floorId": "JQ1",
"title": "剧情层家",
"name": "剧情层家",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
},
{
"type": "sleep",
"time": 1000
},
{
"type": "setText",
"position": "down",
"background": "winskin.png",
"time": 40
},
{
"type": "setCurtain",
"time": 1000
},
"\t[母亲,N385]明天就要送bdf去幼儿园了。",
"\t[父亲,N389]怎么?担心他吗?",
"\t[母亲,N385]那倒不至于...唉,确实有点。",
"\t[父亲,N389]担心也没办法啊,这是他成长过程当中必须要经历的事情。",
"\t[母亲,N385]说的也是,但他刚刚学会说话,我怕他不适应。万一他被其它人欺负了不知道表达该咋办啊?",
"\t[父亲,N389]放心好了,他是我们的儿子,自己的儿子当然要相信他。",
"\t[父亲,N389]而且还有老师看着不是吗?我们也经常注意着他对他多用点心,这就足够了。",
"\t[母亲,N385]行吧,明天我们一起去送他。不知道他刚到陌生环境会不会闹情绪大哭起来。",
"\t[父亲,N389]放心吧,没事,早点休息吧。",
"\t[母亲,N385]嗯嗯...",
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
{
"type": "changeFloor",
"floorId": "JQ2",
"loc": [
6,
8
],
"direction": "up"
}
],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,210016,210017,210017,210017,210017,210017,210018,149,149,149],
[149,149,149,210024,210025,210025,210025,210025,210025,210026,149,149,149],
[149,149,149, 0,210097, 0, 0, 0,181462,181463,149,149,149],
[149,149,149,192231, 0, 0, 0, 0,181470,181471,149,149,149],
[149,149,149,192239, 0, 0,385,389, 0, 0,149,149,149],
[149,149,149,220062,220062, 0, 0, 0,220068,220069,149,149,149],
[149,149,149,220070,220070, 0, 0, 0,220084,220085,149,149,149],
[149,149,149,149,149,149, 0,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149]
],
"bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,210009,210009],
[ 0,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[ 0,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[ 0,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[ 0,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009, 0],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009, 0],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009, 0],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009, 0],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009,210009],
[ 0, 0, 0, 0,210009,210009,210009,210009,210009,210009,210009,210009,210009]
],
"fgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0,210083, 0,210038, 0,210083, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,210046, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bg2map": [
],
"fg2map": [
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,200120, 0, 0, 0, 0, 0, 0,149,149,149],
[149,149,149,200128,210089, 0, 0, 0,181454,181455,149,149,149],
[149,149,149,200136, 0, 0, 0, 0, 0, 0,149,149,149],
[149,149,149, 0, 0, 0, 0, 0, 0, 0,149,149,149],
[149,149,149, 0, 0, 0, 0, 0, 0, 0,149,149,149],
[149,149,149, 0, 0, 0, 0, 0, 0, 0,149,149,149],
[149,149,149, 0, 0, 0, 0, 0, 0, 0,149,149,149],
[149,149,149,149,149,149, 0,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149],
[149,149,149,149,149,149,149,149,149,149,149,149,149]
],
"bgm": "meimei.mp3"
}

147
project/floors/JQ2.js Normal file
View File

@ -0,0 +1,147 @@
main.floors.JQ2=
{
"floorId": "JQ2",
"title": "剧情层幼儿园开始",
"name": "剧情层幼儿园开始",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
},
{
"type": "sleep",
"time": 1500
},
"\t[幼儿园老师,N401]小朋友你叫什么名字啊?",
"\t[母亲,N385]老师问你叫什么名字,对老师说你叫什么名字...",
"\t[hero]...",
"\t[幼儿园老师,N401]小朋友有点害羞啊。",
"\t[母亲,N385]他叫bdf不久前才学会说话对陌生环境也比较害怕。",
"\t[幼儿园老师,N401]你叫bdf是吧从今往后起我就是你的老师了我们一起在这里玩耍好不好啊",
"\t[hero]...嗯...",
"\t[父亲,N389]这孩子在幼儿园要麻烦你们这些老师照顾了,可能需要费点心。",
"\t[幼儿园老师,N401]不麻烦,这都是我们应该做的",
{
"type": "setText",
"position": "center",
"background": "winskin.png",
"time": 40
},
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
"四岁之前我还不记事这些事都是我爸妈对我说的。2003年9月我去了我人生中第一个幼儿园这是一个开始但我没有想到的是我今后的人生会发生诸多不顺...",
{
"type": "changeFloor",
"floorId": "MT11",
"loc": [
6,
12
]
}
],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[140699,140701,140702,140572,140715, 0, 0, 0,190704,190705,190706,190707,190708],
[140716,140717,140718,140719,140700, 0, 0, 0,140639,190713,190714,190715,190716],
[140732,140733,140734,140735, 0, 0, 0,403,140655,190721,190722,190723,190724],
[140696,140697,140698, 0, 0, 0, 0, 0,140671,190729,190730,190731,190732],
[140712,140713,140714, 0,140697, 0, 0,140687, 0, 0, 0, 0, 0],
[140728,140729,140730, 0,140713, 0, 0, 0, 0,411, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,401, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0,140687,388, 0,392,140687, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0,408, 0, 0, 0, 0, 0,407, 0, 0, 0],
[ 0,135, 0, 0, 0, 0, 0, 0, 0, 0,122, 0, 0],
[ 0,405, 0, 0,140687, 0,409, 0,140687, 0, 0, 0, 0]
],
"bgmap": [
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,110001,110001,110001,110001,110001],
[305,305,305,305,305,190008,190008,190008,305,305,305,305,305],
[305,305,305,305,305,190008,190008,190008,305,305,305,305,305],
[305,305,305,305,305,190008,190008,190008,305,305,305,305,305],
[305,305,305,305,305,190008,190008,190008,305,305,305,305,305],
[305,305,305,305,305,190008,190008,190008,305,305,305,305,305],
[305,305,305,305,305,190008,190008,190008,305,305,305,305,305]
],
"fgmap": [
[140666, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[192540,192540,192540,192540,192540,192540,192540,192540,192540,192540,192540,192540,192540],
[192277,192278,192277,192278,192461,192461,192461,192461,192461,192277,192278,192277,192278],
[192285,192286,192285,192286,192469,192469,192469,192469,192469,192285,192286,192285,192286],
[192293,192294,192293,192294,192477, 0, 0, 0,192477,192293,192294,192293,192294],
[192301,192302,192301,192302,192485, 0, 0, 0,192485,192301,192302,192301,192302],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[140258, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,140256],
[140274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,140272],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0,190004, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0,190712, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,190004, 0,190720, 0, 0, 0, 0],
[ 0, 0,140696,140697,140698, 0, 0, 0,190728, 0, 0, 0, 0],
[ 0, 0,140712,140713,140714, 0,190004, 0,110001,110001,110001,110001,110001],
[ 0, 0,140728,140729,140730, 0, 0, 0,110001,110001,110001,110001,110001],
[ 0, 0, 0, 0, 0, 0,190004, 0,110001,110001,110001,110001,110001],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,190004, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,190004, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,190004, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[140348,140349,140350,140351, 0, 0, 0, 0, 0,140348,140349,140350,140351],
[140364,140365,140366,140367,140639, 0, 0, 0,140639,140364,140365,140366,140367],
[140380,140381,140382,140383,140655, 0, 0, 0,140655,140380,140381,140382,140383],
[140396,140397,140398,140399,140671, 0, 0, 0,140671,140396,140397,140398,140399],
[140412,140413,140414,140415, 0, 0, 0, 0, 0,140412,140413,140414,140415],
[140428,140429,140430,140431,140639, 0, 0, 0,140639,140428,140429,140430,140431],
[ 0, 0, 0, 0,140655, 0, 0, 0,140655, 0, 0, 0, 0],
[ 0, 0, 0, 0,140671, 0, 0, 0,140671, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgm": "meimei.mp3"
}

View File

@ -1,36 +1,86 @@
main.floors.MT0=
{
"floorId": "MT0",
"title": "主塔 0 层",
"name": "0",
"title": "朦胧的环境",
"name": "朦胧的环境",
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"defaultGround": "ground",
"images": [],
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40226,40204,40206, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 89,40214, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40214, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225,342,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 31,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 45,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40150, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40224,40180,40182, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"firstArrive": [],
"parallelDo": "",
"events": {},
"firstArrive": [
"浩瀚无际的宇宙中,有一颗星球格外美丽...它那蔚蓝色的外表下散发着无数的光芒,而那些光芒就是生命...",
"生命究竟是什么?它的意义又是什么?这个问题很难...但是,正是因为每一条生命都不一样,这才会散发出不同的光芒不是吗?",
"我们每一个人,都散发着各自的光芒...而这些光芒,就是人生,世界正是因为有了不同的人生才会如此精彩...",
"我究竟是谁?又在哪里?我不知道...我的路又在何方?我也不知道...但是,我确确实实感受到我与众不同...或许,这就是人生吧...",
"人生的意义是什么呢....",
{
"type": "setCurtain",
"time": 1000
}
],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {
"6,2": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
"2001年3月29日这是特殊的一天因为...",
"\t[护士,N413]七斤六两,是个男孩。",
"\t[父亲,N389]哦,是个男孩啊,看样子挺健康。",
"\t[母亲,N385]健康就好,健康就好...\n给他起个名字吧。",
"\t[父亲,N389]我想想啊....嗯就叫bdf吧。",
"\t[母亲,N385]bdf...挺不错的名字...来,让我看看咱们的宝宝...",
{
"type": "changeFloor",
"floorId": "MT1",
"loc": [
6,
2
]
}
]
},
"changeFloor": {},
"afterBattle": {},
"afterGetItem": {},
"afterGetItem": {
"6,4": [
"本塔的设定集(强烈建议打开)"
]
},
"afterOpenDoor": {},
"cannotMove": {},
"bgmap": [
@ -41,5 +91,26 @@ main.floors.MT0=
],
"width": 13,
"height": 13,
"autoEvent": {}
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80011, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "bewithyou.mp3"
}

109
project/floors/MT1.js Normal file
View File

@ -0,0 +1,109 @@
main.floors.MT1=
{
"floorId": "MT1",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
},
{
"type": "changePos",
"direction": "down"
},
"从这层开始的三层,到了下一层都不能返回,铁门需要你击败所有的怪物。"
],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {
"6,10": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 500,
"keep": true
},
"\t[父亲,N389]孩子明天就满月了,辛苦你了。",
"\t[母亲,N385]不辛苦,只要孩子健康成长一切都是值得的。\n好了宝宝乖...咱不哭",
{
"type": "changeFloor",
"floorId": "MT2",
"loc": [
6,
10
]
}
]
},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40226,40205,40206, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 27,40174, 0, 0, 0, 0, 0],
[ 0,40226,40205,40205,40205,40227, 0,40202,40204,40204,40204,40206, 0],
[ 0,40225, 28, 31,201, 0, 31, 0,201, 32, 29,40222, 0],
[ 0,40224,40180,40180,40180,40228, 0,40142,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0,40225,201,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 0,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40225, 89,40174, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,40224,40179,40182, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,80002, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

342
project/floors/MT10.js Normal file
View File

@ -0,0 +1,342 @@
main.floors.MT10=
{
"floorId": "MT10",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {
"6,1": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
{
"type": "hideStatusBar"
},
{
"type": "changeFloor",
"floorId": "JQ1",
"loc": [
6,
12
]
}
]
},
"changeFloor": {
"6,6": {
"floorId": "MT9",
"loc": [
6,
6
]
}
},
"beforeBattle": {},
"afterBattle": {
"6,3": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
},
"\t[bdf,N393]..."
],
"5,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,2": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,6": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,9": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"3,9": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"2,5": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"3,2": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {
"4,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"8,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
]
},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206],
[40225,40044,40044,40044,40044,40044, 89,40044,40044,40044,40044,40044,40194],
[40225,40044, 0,352, 0,40044, 86,40044, 0,203, 0,40044,40194],
[40225,40044, 28,40044, 29,40044,204,40044, 29,40044, 27,40044,40194],
[40225,40044, 0,40044, 0,353, 0,353, 0,40044, 29,40044,40194],
[40225,40044,203,40044,40044,40044, 0,40044, 29,40044, 28,40044,40194],
[40225,40044, 0, 27, 0,40044,104,40044, 0,203, 0,40044,40194],
[40225,40044,40044,40044, 81,40044,40044,40044, 81,40044,40044,40044,40194],
[40225,40044, 27,40044, 0, 29,40044, 29, 0,40044, 28,40044,40194],
[40225,40044, 0,203, 0,40044,40044,40044, 0,203, 0,40044,40194],
[40225,40044, 34,40044, 0, 31,40044, 31, 0,40044, 34,40044,40194],
[40225,40044,40044,40044,40044,40044,40044,40044,40044,40044,40044,40044,40194],
[40224,40179,40179,40179,40179,40179,40179,40179,40179,40179,40179,40179,40182]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

55
project/floors/MT11.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT11=
{
"floorId": "MT11",
"title": "主塔 11 层",
"name": "11",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT12.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT12=
{
"floorId": "MT12",
"title": "主塔 12 层",
"name": "12",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT13.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT13=
{
"floorId": "MT13",
"title": "主塔 13 层",
"name": "13",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT14.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT14=
{
"floorId": "MT14",
"title": "主塔 14 层",
"name": "14",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT15.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT15=
{
"floorId": "MT15",
"title": "主塔 15 层",
"name": "15",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT16.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT16=
{
"floorId": "MT16",
"title": "主塔 16 层",
"name": "16",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT17.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT17=
{
"floorId": "MT17",
"title": "主塔 17 层",
"name": "17",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT18.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT18=
{
"floorId": "MT18",
"title": "主塔 18 层",
"name": "18",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT19.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT19=
{
"floorId": "MT19",
"title": "主塔 19 层",
"name": "19",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

348
project/floors/MT2.js Normal file
View File

@ -0,0 +1,348 @@
main.floors.MT2=
{
"floorId": "MT2",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
}
],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {
"6,6": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
"\t[母亲,N385]孩子他爸,明天咱儿子就要过百日了,宴席准备的咋样了?",
"\t[父亲,N389]放心吧,一切准备就绪,明天就让大家看一看这孩子。\n来让爸爸抱抱..",
{
"type": "changeFloor",
"floorId": "MT3",
"loc": [
6,
6
]
}
]
},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {
"9,2": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"3,2": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"3,4": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"2,7": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"5,8": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"7,8": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"10,7": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"7,4": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"5,4": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"9,9": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
],
"3,9": [
{
"type": "setValue",
"name": "flag:tm",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tm==11)",
"true": [
{
"type": "openDoor",
"loc": [
6,
5
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206, 0],
[ 0,40225, 0,201, 0, 27, 0, 28, 0,201, 0,40186, 0],
[ 0,40225, 27,40044,40044,40044, 29,40044,40044,40044, 28,40186, 0],
[ 0,40225, 0,201, 0,202, 0,202, 0,40044, 0,40186, 0],
[ 0,40225, 31,40044, 29,40044, 86,40044, 29,40044, 31,40186, 0],
[ 0,40225, 0,40044, 0,40044, 89,40044, 0,40044, 0,40186, 0],
[ 0,40225,201,40044, 31,40044,40044,40044, 31,40044,201,40186, 0],
[ 0,40225, 0, 0, 0,201, 0,201, 0, 0, 0,40186, 0],
[ 0,40225,40044,202,40044,40044, 0,40044,40044,202,40044,40186, 0],
[ 0,40225, 27, 0, 32,40044, 0,40044, 32, 0, 28,40186, 0],
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80002,80002,80002,80002, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

55
project/floors/MT20.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT20=
{
"floorId": "MT20",
"title": "主塔 20 层",
"name": "20",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT21.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT21=
{
"floorId": "MT21",
"title": "主塔 21 层",
"name": "21",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT22.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT22=
{
"floorId": "MT22",
"title": "主塔 22 层",
"name": "22",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT23.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT23=
{
"floorId": "MT23",
"title": "主塔 23 层",
"name": "23",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT24.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT24=
{
"floorId": "MT24",
"title": "主塔 24 层",
"name": "24",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

55
project/floors/MT25.js Normal file
View File

@ -0,0 +1,55 @@
main.floors.MT25=
{
"floorId": "MT25",
"title": "主塔 25 层",
"name": "25",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

106
project/floors/MT3.js Normal file
View File

@ -0,0 +1,106 @@
main.floors.MT3=
{
"floorId": "MT3",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
}
],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {
"6,8": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
"\t[父亲,N389]bdf已经一周岁了。许个愿望吧。",
"\t[母亲,N385]许个什么愿望呢...",
"\t[母亲,N385]希望他能平平安安健健康康吧。以后的路还很长,要靠他自己,我们当父母的默默的支持他就好。",
"\t[父亲,N389]嗯嗯,平安健康就好,我儿子将来一定会有出息的。",
{
"type": "changeFloor",
"floorId": "MT4",
"loc": [
6,
9
]
}
]
},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0,40226,40203,40203,40203,40203,40203,40206, 0, 0, 0],
[ 0, 0, 0,40225, 28,40044,40044,40044, 27,40194, 0, 0, 0],
[ 0, 0, 0,40225, 32,40044, 0,202, 0,40194, 0, 0, 0],
[ 0, 0, 0,40225, 0,202, 0,40044, 29,40194, 0, 0, 0],
[ 0, 0, 0,40225, 29,40044,40044,40044, 0,40194, 0, 0, 0],
[ 0, 0, 0,40225, 0,348, 89,40044, 32,40194, 0, 0, 0],
[ 0, 0, 0,40224,40180,40180,40180,40180,40180,40182, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0,80000,80000,80000,80000,80000, 0, 0, 0, 0],
[ 0, 0, 0, 0,80000,80000,80000,80000,80000, 0, 0, 0, 0],
[ 0, 0, 0, 0,80000,80000,80000,80000,80000, 0, 0, 0, 0],
[ 0, 0, 0, 0,80000,80000,80000,80000,80000, 0, 0, 0, 0],
[ 0, 0, 0, 0,80000,80000,80000,80000,80000, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

237
project/floors/MT4.js Normal file
View File

@ -0,0 +1,237 @@
main.floors.MT4=
{
"floorId": "MT4",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
},
"这一层开始,进入下一层可以返回,但进入下一区依旧不能返回,注意分辨。"
],
"eachArrive": null,
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"6,3": {
"floorId": "MT5",
"loc": [
6,
2
]
}
},
"beforeBattle": {},
"afterBattle": {
"6,5": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"9,5": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"3,5": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"5,6": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"7,6": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"9,7": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"3,7": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,40226,40204,40204,40204,40204,40204,40204,40204,40206, 0, 0],
[ 0, 0,40225, 28, 27,40044, 89,40044, 31, 31,40150, 0, 0],
[ 0, 0,40225, 0, 29,40044, 0,40044, 27, 0,40150, 0, 0],
[ 0, 0,40225,349,40044,40044,350,40044,40044,350,40150, 0, 0],
[ 0, 0,40225, 0, 31,348, 0,348, 31, 0,40150, 0, 0],
[ 0, 0,40225,348,40044,40044, 0,40044,40044,348,40150, 0, 0],
[ 0, 0,40225, 0, 31,40044, 0,40044, 31, 0,40150, 0, 0],
[ 0, 0,40225, 29, 28,40044, 0,40044, 27, 29,40150, 0, 0],
[ 0, 0,40224,40180,40180,40180,40180,40180,40180,40180,40182, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0,80002,80002,80002,80002,80002,80002,80002, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

280
project/floors/MT5.js Normal file
View File

@ -0,0 +1,280 @@
main.floors.MT5=
{
"floorId": "MT5",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"6,2": {
"floorId": "MT4",
"loc": [
6,
3
]
},
"6,10": {
"floorId": "MT6",
"loc": [
6,
10
]
}
},
"beforeBattle": {},
"afterBattle": {
"6,4": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"6,7": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"4,8": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"2,4": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"10,4": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"3,9": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"7,6": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"8,8": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"3,5": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206, 0],
[ 0,40225, 29, 28,40044,40044,104,40044,40044, 27, 29,40214, 0],
[ 0,40225, 0, 32,40044, 27, 0, 32,40044, 28, 0,40214, 0],
[ 0,40225,349,40044,40044,40044,350,40044,40044,40044,349,40214, 0],
[ 0,40225, 0,348, 0, 28, 0,40044, 29, 0, 0,40214, 0],
[ 0,40225, 31,40044, 32, 0, 0,348, 0, 31, 0,40214, 0],
[ 0,40225,40044,40044,40044,40044,350,40044,40044,40044,40044,40214, 0],
[ 0,40225, 32, 0,350, 0, 0, 0,348, 0,40044,40214, 0],
[ 0,40225,40044,349,40044, 27, 0, 28,40044, 31,40044,40214, 0],
[ 0,40225, 30, 0,40044, 0, 89, 0,40044, 31,40044,40214, 0],
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

318
project/floors/MT6.js Normal file
View File

@ -0,0 +1,318 @@
main.floors.MT6=
{
"floorId": "MT6",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {
"6,2": [
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 1000,
"keep": true
},
"\t[母亲,N385]bdf学会了走路但好像还不会说话啊...",
"\t[父亲,N389]慢慢来呗,早晚都会的,他不过才两岁罢了。",
{
"type": "changeFloor",
"floorId": "MT7",
"loc": [
6,
2
]
}
]
},
"changeFloor": {
"6,10": {
"floorId": "MT5",
"loc": [
6,
10
]
}
},
"beforeBattle": {},
"afterBattle": {
"6,4": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"5,5": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"7,5": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"7,7": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"4,8": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"6,6": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"9,3": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"3,3": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"8,8": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
],
"5,7": [
{
"type": "setValue",
"name": "flag:tmd",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmd==26)",
"true": [
{
"type": "openDoor",
"loc": [
6,
3
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206, 0],
[ 0,40225, 34, 0, 28,40044, 89,40044, 27, 0, 34,40214, 0],
[ 0,40225,40044,349,40044,40044, 86,40044,40044,349,40044,40214, 0],
[ 0,40225,40044, 0, 28,40044,351,40044, 27, 0,40044,40214, 0],
[ 0,40225,40044, 32, 0,350, 0,350, 0, 32,40044,40214, 0],
[ 0,40225,40044,40044,40044,40044,349,40044,40044,40044,40044,40214, 0],
[ 0,40225, 29, 31, 0,348, 0,350, 0, 31, 32,40214, 0],
[ 0,40225,40044,40044,350,40044, 0,40044,349,40044,40044,40214, 0],
[ 0,40225,40044, 31, 0,40044, 0,40044, 0, 32,40044,40214, 0],
[ 0,40225,40044, 28, 31,40044,104,40044, 32, 27,40044,40214, 0],
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

320
project/floors/MT7.js Normal file
View File

@ -0,0 +1,320 @@
main.floors.MT7=
{
"floorId": "MT7",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [
{
"type": "setCurtain",
"time": 1000
}
],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"10,6": {
"floorId": "MT8",
"loc": [
10,
6
]
}
},
"beforeBattle": {},
"afterBattle": {
"4,8": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"6,9": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,10": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"3,2": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"5,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"6,5": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,6": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"5,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,8": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206, 0],
[ 0,40225, 0,353, 0,40044, 0,40044, 28,40044, 28,40194, 0],
[ 0,40225, 32,40044, 27,40044, 0,40044, 31,40044, 27,40194, 0],
[ 0,40225, 29,40044, 0,351, 0,351, 0,353, 0,40194, 0],
[ 0,40225, 32,40044, 31,40044,351,40044,40044,40044,40044,40194, 0],
[ 0,40225,40044,40044,40044,40044, 0,351, 0, 31, 89,40194, 0],
[ 0,40225, 27, 31, 0,351, 0,40044,40044,40044,40044,40194, 0],
[ 0,40225,40044,40044,353,40044, 0,351, 0,40044, 27,40194, 0],
[ 0,40225,40044, 31, 0,40044,353,40044, 28,40044, 34,40194, 0],
[ 0,40225,40044, 28, 31,40044, 30,40044, 0,353, 0,40194, 0],
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0,80002,80002,80002,80002,80002,80002,80002,80002,80002, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

238
project/floors/MT8.js Normal file
View File

@ -0,0 +1,238 @@
main.floors.MT8=
{
"floorId": "MT8",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"10,6": {
"floorId": "MT7",
"loc": [
10,
6
]
},
"6,10": {
"floorId": "MT9",
"loc": [
6,
10
]
}
},
"beforeBattle": {},
"afterBattle": {
"9,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"6,5": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,6": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"4,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"5,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"5,9": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,3": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,40226,40204,40204,40204,40204,40204,40204,40204,40204,40204,40206, 0],
[ 0,40225,40044,40044,40044,40044,40044,40044,40044,40044,40044,40214, 0],
[ 0,40225,40044, 29,40044, 27, 0,352, 0, 27,40044,40214, 0],
[ 0,40225,40044, 0,352, 0, 32,40044, 28, 29,40044,40214, 0],
[ 0,40225,40044, 34,40044,40044,353,40044,40044,40044,40044,40214, 0],
[ 0,40225,40044,40044,40044,40044, 0,351, 32, 0,104,40214, 0],
[ 0,40225,40044, 28, 32,352, 0,40044,40044,353,40044,40214, 0],
[ 0,40225,40044,40044,40044,40044, 29,40044, 31, 0,40044,40214, 0],
[ 0,40225,40044, 27, 32,352, 0,40044, 28, 32,40044,40214, 0],
[ 0,40225,40044,40044,40044,40044, 89,40044,40044,40044,40044,40214, 0],
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0,80000,80000,80000,80000,80000,80000,80000,80000,80000, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

343
project/floors/MT9.js Normal file
View File

@ -0,0 +1,343 @@
main.floors.MT9=
{
"floorId": "MT9",
"title": "朦胧的环境",
"name": "朦胧的环境",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [
{
"name": "8.jpg",
"reverse": ":o",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"8.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -296, -88);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
"events": {},
"changeFloor": {
"6,10": {
"floorId": "MT8",
"loc": [
6,
10
]
},
"6,6": {
"floorId": "MT10",
"loc": [
6,
6
]
}
},
"beforeBattle": {},
"afterBattle": {
"8,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"4,7": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"3,9": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,10": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,8": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"5,8": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"8,3": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"4,3": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"7,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"5,4": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"9,6": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
],
"3,6": [
{
"type": "setValue",
"name": "flag:tmys",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "(flag:tmys==41)",
"true": [
{
"type": "openDoor",
"loc": [
6,
2
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0,40226,40203,40203,40203,40203,40203,40203,40203,40203,40203,40206, 0],
[ 0,40225,40044,40044, 0, 21,40044, 21, 0,40044,40044,40214, 0],
[ 0,40225, 32,40044,203,40044,40044,40044,203,40044, 32,40214, 0],
[ 0,40225, 31,40044, 0,352, 0,352, 0,40044, 31,40214, 0],
[ 0,40225, 29,40044, 27,40044, 0,40044, 28,40044, 29,40214, 0],
[ 0,40225, 0,352, 0,40044, 89,40044, 0,352, 0,40214, 0],
[ 0,40225,40044,40044,353,40044,40044,40044,353,40044,40044,40214, 0],
[ 0,40225, 27,40044, 0,351, 0,351, 0,40044, 28,40214, 0],
[ 0,40225, 0,353, 0,40044, 0,40044, 28,40044, 28,40214, 0],
[ 0,40225, 27,40044, 27,40044,104,40044, 0,353, 0,40214, 0],
[ 0,40224,40180,40180,40180,40180,40180,40180,40180,40180,40180,40182, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0,80016,80016,80016,80016,80016,80016,80016,80016,80016, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
],
"bgm": "congtianerjiang.mp3"
}

150
project/floors/ND1.js Normal file
View File

@ -0,0 +1,150 @@
main.floors.ND1=
{
"floorId": "ND1",
"title": "难度选择",
"name": "0",
"width": 13,
"height": 13,
"canFlyTo": false,
"canFlyFrom": false,
"canUseQuickShop": false,
"cannotViewMap": true,
"images": [
{
"name": "bg.jpg",
"canvas": "bg",
"x": 0,
"y": 0
}
],
"ratio": 1,
"defaultGround": "ground",
"bgm": "bewithyou.mp3",
"firstArrive": [
{
"type": "trigger",
"loc": [
11,
11
]
}
],
"eachArrive": [],
"parallelDo": "",
"events": {
"11,11": [
{
"type": "choices",
"text": "请选择游戏模式",
"choices": [
{
"text": "休闲模式",
"color": [
151,
230,
8,
1
],
"action": [
"休闲模式含有丰富的剧情,\n讲述了主角从出生打大学毕业的时光\n跟随主角去探寻人生中的酸甜苦辣。\n难度不大适合广大休闲玩家游玩。\n最终计分方式为钥匙计分。",
{
"type": "confirm",
"text": "确认要选择休闲模式吗?",
"yes": [
{
"type": "setValue",
"name": "flag:hard",
"value": "1"
},
{
"type": "function",
"function": "function(){\ncore.status.hard = 'Easy';\n}"
},
{
"type": "break",
"n": 1
}
],
"no": []
}
]
},
{
"text": "挑战模式",
"color": [
255,
0,
0,
1
],
"action": [
"挑战模式去掉全部剧情。\n难度比休闲模式要高。\n适合喜欢冲榜的玩家优化路线刷max。\n本塔的核心在于剧情\n玩完休闲模式再来体验挑战模式效果更佳。\n计分方式为钥匙计分。",
{
"type": "confirm",
"text": "确认要选择挑战模式吗?",
"yes": [
{
"type": "setValue",
"name": "flag:hard",
"value": "2"
},
{
"type": "function",
"function": "function(){\ncore.status.hard = 'Hard';\n}"
},
{
"type": "break",
"n": 1
}
],
"no": []
}
]
}
]
}
]
},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {
"11,11": {
"0": null,
"1": null,
"2": null,
"3": null
}
},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}

View File

@ -63,7 +63,8 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"sWallBLR": 31,
"sWallTLR": 32,
"sWallTBR": 33,
"sWallTBL": 34
"sWallTBL": 34,
"T362": 35
},
"animates": {
"star": 0,
@ -94,7 +95,21 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"rightPortal": 25,
"upPortal": 26,
"ice": 27,
"magentaWall": 28
"magentaWall": 28,
"A363": 29,
"A364": 30,
"A365": 31,
"A366": 32,
"A367": 33,
"A368": 34,
"A369": 35,
"A370": 36,
"A371": 37,
"A372": 38,
"A373": 39,
"A374": 40,
"A375": 41,
"A376": 42
},
"npcs": {
"man": 0,
@ -110,7 +125,8 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"moneyShop": 10,
"princess": 11,
"greenMan": 12,
"blueTrader": 13
"blueTrader": 13,
"N410": 14
},
"npc48": {
"npc0": 0,
@ -122,7 +138,42 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"tallRedDoor": 6,
"tallGreenDoor": 7,
"tallSpecialDoor": 8,
"tallSteelDoor": 9
"tallSteelDoor": 9,
"N377": 10,
"N378": 11,
"N379": 12,
"N380": 13,
"N381": 14,
"N382": 15,
"N383": 16,
"N384": 17,
"N385": 18,
"N386": 19,
"N387": 20,
"N388": 21,
"N389": 22,
"N390": 23,
"N391": 24,
"N392": 25,
"N393": 26,
"N394": 27,
"N395": 28,
"N396": 29,
"N397": 30,
"N398": 31,
"N399": 32,
"N400": 33,
"N401": 34,
"N402": 35,
"N403": 36,
"N404": 37,
"N405": 38,
"N406": 39,
"N407": 40,
"N408": 41,
"N409": 42,
"N411": 43,
"N413": 44
},
"enemys": {
"greenSlime": 0,
@ -197,7 +248,23 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"blueKing": 45,
"keiskeiFairy": 71,
"tulipFairy": 72,
"purpleBowman": 65
"purpleBowman": 65,
"E344": 73,
"E348": 74,
"E349": 75,
"E350": 76,
"E351": 77,
"E352": 78,
"E353": 79,
"E354": 80,
"E355": 81,
"E356": 82,
"E357": 83,
"E358": 84,
"E359": 85,
"E360": 86,
"E361": 87,
"E412": 88
},
"enemy48": {
"angel": 0,
@ -207,7 +274,11 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"bearDown": 4,
"bearLeft": 5,
"bearRight": 6,
"bearUp": 7
"bearUp": 7,
"E343": 8,
"E345": 9,
"E346": 10,
"E347": 11
},
"items": {
"yellowKey": 0,
@ -260,12 +331,36 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"jumpShoes": 49,
"skill1": 30,
"wand": 10,
"pack": 46
"pack": 46,
"I331": 5,
"I332": 7,
"I333": 26,
"I334": 31,
"I335": 32,
"I336": 34,
"I337": 35,
"I338": 36,
"I339": 37,
"I340": 38,
"I341": 39,
"I342": 62
},
"autotile": {
"autotile": 0,
"autotile1": 0,
"autotile2": 0,
"autotile3": 0
"autotile3": 0,
"autotile4": 0,
"autotile5": 0,
"autotile6": 0,
"autotile7": 0,
"autotile8": 0,
"autotile9": 0,
"autotile10": 0,
"autotile11": 0,
"autotile12": 0,
"autotile13": 0,
"autotile14": 0,
"autotile15": 0
}
}

BIN
project/images/1.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

BIN
project/images/2.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
project/images/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

BIN
project/images/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

BIN
project/images/5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
project/images/6.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
project/images/7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

BIN
project/images/8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
project/images/9.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
project/images/hero1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
project/images/hero2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
project/images/hero3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
project/images/hero4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -48,49 +48,10 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"yellowGem": {
"cls": "items",
"name": "黄宝石",
"text": "可以进行加点",
"itemEffect": "core.status.hero.hp+=1000;core.status.hero.atk+=6;core.status.hero.def+=6;core.status.hero.mdef+=10;",
"text": null,
"itemEffect": "core.status.hero.atk += 1;\ncore.status.hero.def += 1;\ncore.status.hero.mdef += 3;",
"itemEffectTip": ",全属性提升",
"useItemEvent": [
{
"type": "choices",
"choices": [
{
"text": "攻击+1",
"action": [
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "1"
}
]
},
{
"text": "防御+2",
"action": [
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "2"
}
]
},
{
"text": "生命+200",
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "200"
}
]
}
]
}
],
"useItemEvent": null,
"canUseItemEffect": "true"
},
"redPotion": {
@ -303,7 +264,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
},
"book": {
"cls": "constants",
"name": "怪物手册",
"name": "人生指南",
"text": "可以查看当前楼层各怪物属性",
"hideInToolbox": true,
"useItemEffect": "core.ui.drawBook(0);",
@ -528,5 +489,119 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"name": "钱袋",
"itemEffect": "core.status.hero.money += 500",
"itemEffectTip": ",金币+500"
},
"I331": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I332": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I333": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I334": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I335": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I336": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I337": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I338": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I339": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I340": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I341": {
"cls": "items",
"name": "新物品",
"canUseItemEffect": "true"
},
"I342": {
"cls": "constants",
"name": "人生事件薄",
"canUseItemEffect": "true",
"useItemEvent": [
{
"type": "while",
"condition": "1",
"data": [
{
"type": "choices",
"text": "你想知道什么呢?",
"choices": [
{
"text": "关于自己",
"action": [
"生命:万物之源。只有拥有生命你才能不断的走下去。生命与健康息息相关,还会因为你的心态变的无比强大或是脆弱不堪...\n攻击披荆斩棘的利刃。只要心中有信念这利刃就更强\n防御坚韧的铠甲。内心坚定多大的坎也能挺过去。\n护盾守护的力量。不知你相不相信在这个世界上总有人默默的守护着你默默的帮你承受着你的痛苦。\n经验成长的轨迹经历越多经验就会越多当你经验多起来的时候也许你已经长大成人了..."
]
},
{
"text": "关于环境",
"action": [
"人生好比一条大道,它的尽头又在何方?\n在人生的道路上必定会经历很多磨难也会遇到许多挫折这条路注定不会一帆风顺。但世间总有一些美好值得我们全力以赴哪怕粉身碎骨。究竟怎样才能走到大道的尽头呢"
]
},
{
"text": "关于怪物",
"action": [
"没有人会一帆风顺,也没人会保持一种情绪。\n怪物是什么世界上根本没有怪物被认为怪物的东西不过是超过人们的认知罢了。但是人生总会有一些坎困难找你麻烦的家伙自身的不良情绪等等...这,也许会成为你心中的怪物..."
]
},
{
"text": "关于战斗",
"action": [
"真的甘心一直被别人压着吗?来吧,大胆的往前冲!\n精神是人的支柱这股精神激励着你不断向前。人生中的各种磨难需要你通过战斗一一化解\n永远不要低估自己只有勇往直前坚持不懈才能冲破一个个的坎打到一个又一个的怪物突破一个又一个的关卡"
]
},
{
"text": "关于人生",
"action": [
"浩瀚无际的星空,由一个个梦想交汇而成...抬头看向星空的时候,你是否知道自己究竟要去往何处?\n过去的时光中总有一些痛苦让你刻骨铭心总有一些快乐让你回味酸甜苦辣五味杂陈...你能感受的到吗?感受的话...你会想些啥呢?\n远在九天之上的梦想并非遥不可及踏空而行贯彻道路终有一天能够圆梦九天..."
]
},
{
"text": "离开",
"action": [
{
"type": "break",
"n": 1
}
]
}
]
}
]
}
],
"text": "本塔的设定集(强烈建议打开)"
}
}

View File

@ -105,9 +105,21 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"136": {"cls":"npc48","id":"npc3","faceIds":{"down":"npc0","left":"npc1","right":"npc2","up":"npc3"},"animate":1},
"137": {"cls":"npcs","id":"greenMan"},
"138": {"cls":"npcs","id":"blueTrader"},
"140": {"cls":"autotile","id":"autotile4"},
"141": {"cls":"autotile","id":"autotile5"},
"142": {"cls":"autotile","id":"autotile6"},
"143": {"cls":"autotile","id":"autotile7"},
"144": {"cls":"autotile","id":"autotile8"},
"145": {"cls":"autotile","id":"autotile9"},
"146": {"cls":"autotile","id":"autotile10"},
"147": {"cls":"autotile","id":"autotile11"},
"148": {"cls":"autotile","id":"autotile12"},
"149": {"cls":"autotile","id":"autotile13"},
"150": {"cls":"autotile","id":"autotile14"},
"151": {"cls":"autotile","id":"autotile1"},
"152": {"cls":"autotile","id":"autotile2"},
"153": {"cls":"autotile","id":"autotile3"},
"154": {"cls":"autotile","id":"autotile15"},
"161": {"cls":"terrains","id":"arrowUp","canPass":true,"cannotOut":["left","right","down"],"cannotIn":["up"]},
"162": {"cls":"terrains","id":"arrowDown","canPass":true,"cannotOut":["left","right","up"],"cannotIn":["down"]},
"163": {"cls":"terrains","id":"arrowLeft","canPass":true,"cannotOut":["up","down","right"],"cannotIn":["left"]},
@ -223,5 +235,88 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"327": {"cls":"enemy48","id":"bearDown"},
"328": {"cls":"enemy48","id":"bearLeft"},
"329": {"cls":"enemy48","id":"bearRight"},
"330": {"cls":"enemy48","id":"bearUp"}
"330": {"cls":"enemy48","id":"bearUp"},
"331": {"cls":"items","id":"I331"},
"332": {"cls":"items","id":"I332"},
"333": {"cls":"items","id":"I333"},
"334": {"cls":"items","id":"I334"},
"335": {"cls":"items","id":"I335"},
"336": {"cls":"items","id":"I336"},
"337": {"cls":"items","id":"I337"},
"338": {"cls":"items","id":"I338"},
"339": {"cls":"items","id":"I339"},
"340": {"cls":"items","id":"I340"},
"341": {"cls":"items","id":"I341"},
"342": {"cls":"items","id":"I342"},
"343": {"cls":"enemy48","id":"E343"},
"344": {"cls":"enemys","id":"E344"},
"345": {"cls":"enemy48","id":"E345"},
"346": {"cls":"enemy48","id":"E346"},
"347": {"cls":"enemy48","id":"E347"},
"348": {"cls":"enemys","id":"E348"},
"349": {"cls":"enemys","id":"E349"},
"350": {"cls":"enemys","id":"E350"},
"351": {"cls":"enemys","id":"E351"},
"352": {"cls":"enemys","id":"E352"},
"353": {"cls":"enemys","id":"E353"},
"354": {"cls":"enemys","id":"E354"},
"355": {"cls":"enemys","id":"E355"},
"356": {"cls":"enemys","id":"E356"},
"357": {"cls":"enemys","id":"E357"},
"358": {"cls":"enemys","id":"E358"},
"359": {"cls":"enemys","id":"E359"},
"360": {"cls":"enemys","id":"E360"},
"361": {"cls":"enemys","id":"E361"},
"362": {"cls":"terrains","id":"T362"},
"363": {"cls":"animates","id":"A363"},
"364": {"cls":"animates","id":"A364"},
"365": {"cls":"animates","id":"A365"},
"366": {"cls":"animates","id":"A366"},
"367": {"cls":"animates","id":"A367"},
"368": {"cls":"animates","id":"A368"},
"369": {"cls":"animates","id":"A369"},
"370": {"cls":"animates","id":"A370"},
"371": {"cls":"animates","id":"A371"},
"372": {"cls":"animates","id":"A372"},
"373": {"cls":"animates","id":"A373"},
"374": {"cls":"animates","id":"A374"},
"375": {"cls":"animates","id":"A375"},
"376": {"cls":"animates","id":"A376"},
"377": {"cls":"npc48","id":"N377","faceIds":{"down":"N377","left":"N378","right":"N379","up":"N380"}},
"378": {"cls":"npc48","id":"N378","faceIds":{"down":"N377","left":"N378","right":"N379","up":"N380"}},
"379": {"cls":"npc48","id":"N379","faceIds":{"down":"N377","left":"N378","right":"N379","up":"N380"}},
"380": {"cls":"npc48","id":"N380","faceIds":{"down":"N377","left":"N378","right":"N379","up":"N380"}},
"381": {"cls":"npc48","id":"N381","faceIds":{"down":"N381","left":"N382","right":"N383","up":"N384"}},
"382": {"cls":"npc48","id":"N382","faceIds":{"down":"N381","left":"N382","right":"N383","up":"N384"}},
"383": {"cls":"npc48","id":"N383","faceIds":{"down":"N381","left":"N382","right":"N383","up":"N384"}},
"384": {"cls":"npc48","id":"N384","faceIds":{"down":"N381","left":"N382","right":"N383","up":"N384"}},
"385": {"cls":"npc48","id":"N385"},
"386": {"cls":"npc48","id":"N386"},
"387": {"cls":"npc48","id":"N387"},
"388": {"cls":"npc48","id":"N388"},
"389": {"cls":"npc48","id":"N389"},
"390": {"cls":"npc48","id":"N390"},
"391": {"cls":"npc48","id":"N391"},
"392": {"cls":"npc48","id":"N392"},
"393": {"cls":"npc48","id":"N393"},
"394": {"cls":"npc48","id":"N394"},
"395": {"cls":"npc48","id":"N395"},
"396": {"cls":"npc48","id":"N396"},
"397": {"cls":"npc48","id":"N397","faceIds":{"down":"N397","left":"N398","right":"N399","up":"N400"}},
"398": {"cls":"npc48","id":"N398","faceIds":{"down":"N397","left":"N398","right":"N399","up":"N400"}},
"399": {"cls":"npc48","id":"N399","faceIds":{"down":"N397","left":"N398","right":"N399","up":"N400"}},
"400": {"cls":"npc48","id":"N400","faceIds":{"down":"N397","left":"N398","right":"N399","up":"N400"}},
"401": {"cls":"npc48","id":"N401"},
"402": {"cls":"npc48","id":"N402"},
"403": {"cls":"npc48","id":"N403"},
"404": {"cls":"npc48","id":"N404"},
"405": {"cls":"npc48","id":"N405"},
"406": {"cls":"npc48","id":"N406"},
"407": {"cls":"npc48","id":"N407"},
"408": {"cls":"npc48","id":"N408"},
"409": {"cls":"npc48","id":"N409"},
"410": {"cls":"npcs","id":"N410"},
"411": {"cls":"npc48","id":"N411"},
"412": {"cls":"enemys","id":"E412"},
"413": {"cls":"npc48","id":"N413"}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,12 +1,11 @@
///<reference path='../runtime.d.ts'/>
var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
{
"init": function () {
"init": function () {
this._afterLoadResources = function () {
// 本函数将在所有资源加载完毕后,游戏开启前被执行
}
},
"drawLight": function () {
"drawLight": function () {
// 绘制灯光/漆黑层效果。调用方式 core.plugin.drawLight(...)
// 【参数说明】
@ -67,7 +66,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
// 可以在任何地方如afterXXX或自定义脚本事件调用函数方法为 core.plugin.xxx();
}
},
"shop": function () {
"shop": function () {
// 【全局商店】相关的功能
//
// 打开一个全局商店
@ -262,7 +261,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
return false;
}, 60);
},
"removeMap": function () {
"removeMap": function () {
// 高层塔砍层插件,删除后不会存入存档,不可浏览地图也不可飞到。
// 推荐用法:
// 对于超高层或分区域塔当在1区时将2区以后的地图删除1区结束时恢复2区进二区时删除1区地图以此类推
@ -349,161 +348,161 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
});
}
},
"fiveLayers": function () {
// 是否启用五图层增加背景2层和前景2层 将__enable置为true即会启用启用后请保存后刷新编辑器
// 背景层2将会覆盖背景层 被事件层覆盖 前景层2将会覆盖前景层
// 另外 请注意加入两个新图层 会让大地图的性能降低一些
// 插件作者ad
var __enable = false;
if (!__enable) return;
"fiveLayers": function () {
// 是否启用五图层增加背景2层和前景2层 将__enable置为true即会启用启用后请保存后刷新编辑器
// 背景层2将会覆盖背景层 被事件层覆盖 前景层2将会覆盖前景层
// 另外 请注意加入两个新图层 会让大地图的性能降低一些
// 插件作者ad
var __enable = true;
if (!__enable) return;
// 创建新图层
function createCanvas (name, zIndex) {
if (!name) return;
var canvas = document.createElement('canvas');
canvas.id = name;
canvas.className = 'gameCanvas anti-aliasing';
// 编辑器模式下设置zIndex会导致加入的图层覆盖优先级过高
if (main.mode != "editor") canvas.style.zIndex = zIndex || 0;
// 将图层插入进游戏内容
document.getElementById('gameDraw').appendChild(canvas);
var ctx = canvas.getContext('2d');
core.canvas[name] = ctx;
canvas.width = core._PX_ || core.__PIXELS__;
canvas.height = core._PY_ || core.__PIXELS__;
return canvas;
}
// 创建新图层
function createCanvas(name, zIndex) {
if (!name) return;
var canvas = document.createElement('canvas');
canvas.id = name;
canvas.className = 'gameCanvas anti-aliasing';
// 编辑器模式下设置zIndex会导致加入的图层覆盖优先级过高
if (main.mode != "editor") canvas.style.zIndex = zIndex || 0;
// 将图层插入进游戏内容
document.getElementById('gameDraw').appendChild(canvas);
var ctx = canvas.getContext('2d');
core.canvas[name] = ctx;
canvas.width = core._PX_ || core.__PIXELS__;
canvas.height = core._PY_ || core.__PIXELS__;
return canvas;
}
var bg2Canvas = createCanvas('bg2', 20);
var fg2Canvas = createCanvas('fg2', 63);
// 大地图适配
core.bigmap.canvas = ["bg2", "fg2", "bg", "event", "event2", "fg", "damage"];
core.initStatus.bg2maps = {};
core.initStatus.fg2maps = {};
var bg2Canvas = createCanvas('bg2', 20);
var fg2Canvas = createCanvas('fg2', 63);
// 大地图适配
core.bigmap.canvas = ["bg2", "fg2", "bg", "event", "event2", "fg", "damage"];
core.initStatus.bg2maps = {};
core.initStatus.fg2maps = {};
if (main.mode == 'editor') {
/*插入编辑器的图层 不做此步新增图层无法在编辑器显示*/
// 编辑器图层覆盖优先级 eui > efg > fg(前景层) > event2(48*32图块的事件层) > event(事件层) > bg(背景层)
// 背景层2(bg2) 插入事件层(event)之前(即bg与event之间)
document.getElementById('mapEdit').insertBefore(bg2Canvas, document.getElementById('event'));
// 前景层2(fg2) 插入编辑器前景(efg)之前(即fg之后)
document.getElementById('mapEdit').insertBefore(fg2Canvas, document.getElementById('ebm'));
// 原本有三个图层 从4开始添加
var num = 4;
// 新增图层存入editor.dom中
editor.dom.bg2c = core.canvas.bg2.canvas;
editor.dom.bg2Ctx = core.canvas.bg2;
editor.dom.fg2c = core.canvas.fg2.canvas;
editor.dom.fg2Ctx = core.canvas.fg2;
editor.dom.maps.push('bg2map', 'fg2map');
editor.dom.canvas.push('bg2', 'fg2');
if (main.mode == 'editor') {
/*插入编辑器的图层 不做此步新增图层无法在编辑器显示*/
// 编辑器图层覆盖优先级 eui > efg > fg(前景层) > event2(48*32图块的事件层) > event(事件层) > bg(背景层)
// 背景层2(bg2) 插入事件层(event)之前(即bg与event之间)
document.getElementById('mapEdit').insertBefore(bg2Canvas, document.getElementById('event'));
// 前景层2(fg2) 插入编辑器前景(efg)之前(即fg之后)
document.getElementById('mapEdit').insertBefore(fg2Canvas, document.getElementById('ebm'));
// 原本有三个图层 从4开始添加
var num = 4;
// 新增图层存入editor.dom中
editor.dom.bg2c = core.canvas.bg2.canvas;
editor.dom.bg2Ctx = core.canvas.bg2;
editor.dom.fg2c = core.canvas.fg2.canvas;
editor.dom.fg2Ctx = core.canvas.fg2;
editor.dom.maps.push('bg2map', 'fg2map');
editor.dom.canvas.push('bg2', 'fg2');
// 创建编辑器上的按钮
var createCanvasBtn = function (name) {
// 电脑端创建按钮
var input = document.createElement('input');
// layerMod4/layerMod5
var id = 'layerMod' + num++;
// bg2map/fg2map
var value = name + 'map';
input.type = 'radio';
input.name = 'layerMod';
input.id = id;
input.value = value;
editor.dom[id] = input;
input.onchange = function () {
editor.uifunctions.setLayerMod(value);
}
return input;
};
var createCanvasBtn_mobile = function (name) {
// 手机端往选择列表中添加子选项
var input = document.createElement('option');
var id = 'layerMod' + num++;
var value = name + 'map';
input.name = 'layerMod';
input.value = value;
editor.dom[id] = input;
return input;
};
if (!editor.isMobile) {
var input = createCanvasBtn('bg2');
var input2 = createCanvasBtn('fg2');
// 获取事件层及其父节点
var child = document.getElementById('layerMod'),
parent = child.parentNode;
// 背景层2插入事件层前
parent.insertBefore(input, child);
// 不能直接更改背景层2的innerText 所以创建文本节点
var txt = document.createTextNode('bg2');
// 插入事件层前(即新插入的背景层2前)
parent.insertBefore(txt, child);
// 向最后插入前景层2(即插入前景层后)
parent.appendChild(input2);
var txt2 = document.createTextNode('fg2');
parent.appendChild(txt2);
parent.childNodes[2].replaceWith("bg");
parent.childNodes[6].replaceWith("事件");
parent.childNodes[8].replaceWith("fg");
} else {
var input = createCanvasBtn_mobile('bg2');
var input2 = createCanvasBtn_mobile('fg2');
// 手机端因为是选项 所以可以直接改innerText
input.innerText = '背景层2';
input2.innerText = '前景层2';
var parent = document.getElementById('layerMod');
parent.insertBefore(input, parent.children[1]);
parent.appendChild(input2);
// 创建编辑器上的按钮
var createCanvasBtn = function (name) {
// 电脑端创建按钮
var input = document.createElement('input');
// layerMod4/layerMod5
var id = 'layerMod' + num++;
// bg2map/fg2map
var value = name + 'map';
input.type = 'radio';
input.name = 'layerMod';
input.id = id;
input.value = value;
editor.dom[id] = input;
input.onchange = function () {
editor.uifunctions.setLayerMod(value);
}
}
return input;
};
var _loadFloor_doNotCopy = core.maps._loadFloor_doNotCopy;
core.maps._loadFloor_doNotCopy = function () {
return ["bg2map", "fg2map"].concat(_loadFloor_doNotCopy());
var createCanvasBtn_mobile = function (name) {
// 手机端往选择列表中添加子选项
var input = document.createElement('option');
var id = 'layerMod' + num++;
var value = name + 'map';
input.name = 'layerMod';
input.value = value;
editor.dom[id] = input;
return input;
};
if (!editor.isMobile) {
var input = createCanvasBtn('bg2');
var input2 = createCanvasBtn('fg2');
// 获取事件层及其父节点
var child = document.getElementById('layerMod'),
parent = child.parentNode;
// 背景层2插入事件层前
parent.insertBefore(input, child);
// 不能直接更改背景层2的innerText 所以创建文本节点
var txt = document.createTextNode('bg2');
// 插入事件层前(即新插入的背景层2前)
parent.insertBefore(txt, child);
// 向最后插入前景层2(即插入前景层后)
parent.appendChild(input2);
var txt2 = document.createTextNode('fg2');
parent.appendChild(txt2);
parent.childNodes[2].replaceWith("bg");
parent.childNodes[6].replaceWith("事件");
parent.childNodes[8].replaceWith("fg");
} else {
var input = createCanvasBtn_mobile('bg2');
var input2 = createCanvasBtn_mobile('fg2');
// 手机端因为是选项 所以可以直接改innerText
input.innerText = '背景层2';
input2.innerText = '前景层2';
var parent = document.getElementById('layerMod');
parent.insertBefore(input, parent.children[1]);
parent.appendChild(input2);
}
////// 绘制背景和前景层 //////
core.maps._drawBg_draw = function (floorId, toDrawCtx, cacheCtx, config) {
config.ctx = cacheCtx;
core.maps._drawBg_drawBackground(floorId, config);
// ------ 调整这两行的顺序来控制是先绘制贴图还是先绘制背景图块;后绘制的覆盖先绘制的。
core.maps._drawFloorImages(floorId, config.ctx, 'bg', null, null, config.onMap);
core.maps._drawBgFgMap(floorId, 'bg', config);
if (config.onMap) {
core.drawImage(toDrawCtx, cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
core.clearMap('bg2');
core.clearMap(cacheCtx);
}
core.maps._drawBgFgMap(floorId, 'bg2', config);
if (config.onMap) core.drawImage('bg2', cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
config.ctx = toDrawCtx;
}
var _loadFloor_doNotCopy = core.maps._loadFloor_doNotCopy;
core.maps._loadFloor_doNotCopy = function () {
return ["bg2map", "fg2map"].concat(_loadFloor_doNotCopy());
}
////// 绘制背景和前景层 //////
core.maps._drawBg_draw = function (floorId, toDrawCtx, cacheCtx, config) {
config.ctx = cacheCtx;
core.maps._drawBg_drawBackground(floorId, config);
// ------ 调整这两行的顺序来控制是先绘制贴图还是先绘制背景图块;后绘制的覆盖先绘制的。
core.maps._drawFloorImages(floorId, config.ctx, 'bg', null, null, config.onMap);
core.maps._drawBgFgMap(floorId, 'bg', config);
if (config.onMap) {
core.drawImage(toDrawCtx, cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
core.clearMap('bg2');
core.clearMap(cacheCtx);
}
core.maps._drawFg_draw = function (floorId, toDrawCtx, cacheCtx, config) {
config.ctx = cacheCtx;
// ------ 调整这两行的顺序来控制是先绘制贴图还是先绘制前景图块;后绘制的覆盖先绘制的。
core.maps._drawFloorImages(floorId, config.ctx, 'fg', null, null, config.onMap);
core.maps._drawBgFgMap(floorId, 'fg', config);
if (config.onMap) {
core.drawImage(toDrawCtx, cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
core.clearMap('fg2');
core.clearMap(cacheCtx);
}
core.maps._drawBgFgMap(floorId, 'fg2', config);
if (config.onMap) core.drawImage('fg2', cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
config.ctx = toDrawCtx;
core.maps._drawBgFgMap(floorId, 'bg2', config);
if (config.onMap) core.drawImage('bg2', cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
config.ctx = toDrawCtx;
}
core.maps._drawFg_draw = function (floorId, toDrawCtx, cacheCtx, config) {
config.ctx = cacheCtx;
// ------ 调整这两行的顺序来控制是先绘制贴图还是先绘制前景图块;后绘制的覆盖先绘制的。
core.maps._drawFloorImages(floorId, config.ctx, 'fg', null, null, config.onMap);
core.maps._drawBgFgMap(floorId, 'fg', config);
if (config.onMap) {
core.drawImage(toDrawCtx, cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
core.clearMap('fg2');
core.clearMap(cacheCtx);
}
////// 移动判定 //////
core.maps._generateMovableArray_arrays = function (floorId) {
return {
bgArray: this.getBgMapArray(floorId),
fgArray: this.getFgMapArray(floorId),
eventArray: this.getMapArray(floorId),
bg2Array: this._getBgFgMapArray('bg2', floorId),
fg2Array: this._getBgFgMapArray('fg2', floorId)
};
}
},
"itemShop": function () {
core.maps._drawBgFgMap(floorId, 'fg2', config);
if (config.onMap) core.drawImage('fg2', cacheCtx.canvas, core.bigmap.v2 ? -32 : 0, core.bigmap.v2 ? -32 : 0);
config.ctx = toDrawCtx;
}
////// 移动判定 //////
core.maps._generateMovableArray_arrays = function (floorId) {
return {
bgArray: this.getBgMapArray(floorId),
fgArray: this.getFgMapArray(floorId),
eventArray: this.getMapArray(floorId),
bg2Array: this._getBgFgMapArray('bg2', floorId),
fg2Array: this._getBgFgMapArray('fg2', floorId)
};
}
},
"itemShop": function () {
// 道具商店相关的插件
// 可在全塔属性-全局商店中使用「道具商店」事件块进行编辑(如果找不到可以在入口方块中找)
@ -809,7 +808,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
},
"enemyLevel": function () {
"enemyLevel": function () {
// 此插件将提供怪物手册中的怪物境界显示
// 使用此插件需要先给每个怪物定义境界,方法如下:
// 点击怪物的【配置表格】,找到“【怪物】相关的表格配置”,然后在【名称】仿照增加境界定义:
@ -895,7 +894,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.fillText('ui', core.formatBigNumber(enemy.def || 0), col3 + 30, position, /* [255, 0, 0, 1] */ null, b13);
}
},
"multiHeros": function () {
"multiHeros": function () {
// 多角色插件
// Step 1: 启用本插件
// Step 2: 定义每个新的角色各项初始数据(参见下方注释)
@ -1041,7 +1040,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.setFlag("heroId", toHeroId); // 保存切换到的角色ID
}
},
"heroFourFrames": function () {
"heroFourFrames": function () {
// 样板的勇士/跟随者移动时只使用2、4两帧观感较差。本插件可以将四帧全用上。
// 是否启用本插件
@ -1094,7 +1093,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
return false;
}
},
"routeFixing": function () {
"routeFixing": function () {
// 是否开启本插件true 表示启用false 表示禁用。
var __enable = true;
if (!__enable) return;
@ -1185,7 +1184,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
}, 100);
},
"numpad": function () {
"numpad": function () {
// 样板自带的整数输入事件为白屏弹窗且可以误输入任意非法内容但不支持负整数观感较差。本插件可以将其美化成仿RM样式使其支持负整数同时带有音效
// 另一方面4399等第三方平台不允许使用包括 core.myprompt() 和 core.myconfirm() 在内的弹窗,因此也需要此插件来替代,不然类似生命魔杖的道具就不好实现了
// 关于负整数输入V2.8.2原生支持其录像的压缩和解压,只是默认的 core.events._action_input() 函数将负数取了绝对值,可以只复写下面的 core.isReplaying() 部分来取消
@ -1360,7 +1359,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
}
},
"sprites": function () {
"sprites": function () {
// 基于canvas的sprite化摘编整理自万宁魔塔
//
// ---------------------------------------- 第一部分 js代码 (必装) --------------------------------------- //
@ -1552,7 +1551,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
window.Sprite = Sprite;
},
"hotReload": function () {
"hotReload": function () {
/* ---------- ---------- *
1. libs/ main.js index.html 中的任意一个文件被更改后会自动刷新塔的页面

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 KiB

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