yimengjiutian/project/data.js

1110 lines
20 KiB
JavaScript
Raw Normal View History

2023-04-07 20:18:10 +08:00
var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
{
"main": {
"floorIds": [
2023-04-19 14:26:21 +08:00
"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",
2023-04-23 12:59:17 +08:00
"MT25",
"JQ3",
"JQ4",
"JQ5",
"MT26",
"MT27",
"MT28",
"MT29",
"MT30",
"MT31",
"MT32",
"MT33",
"MT34",
"MT35",
"MT36",
"MT37",
"MT38",
"MT39",
"MT40"
2023-04-07 20:18:10 +08:00
],
"floorPartitions": [],
"images": [
2023-04-19 14:26:21 +08:00
"1.jpeg",
"2.jpeg",
"3.png",
"4.jpg",
"5.jpg",
"6.jpeg",
"641-e.jpg",
"641-h.jpg",
2023-04-23 12:59:17 +08:00
"641.jpg",
2023-04-19 14:26:21 +08:00
"7.jpg",
"8.jpg",
"9.jpeg",
2023-04-07 20:18:10 +08:00
"bear.png",
"bg.jpg",
"dragon.png",
"hero.png",
2023-04-19 14:26:21 +08:00
"hero1.png",
"hero2.png",
"hero3.png",
"hero4.png",
2023-04-23 12:59:17 +08:00
"lanxing.jpg",
"winskin.png",
"xinghe.jpeg"
2023-04-07 20:18:10 +08:00
],
"tilesets": [
2023-04-19 14:26:21 +08:00
"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",
2023-04-23 12:59:17 +08:00
"002-Woods01.png",
"tilesets.min.png",
"2.png",
"zombie_tiled.png",
"tower.png",
"hz.png",
"em.png",
"Gothic.png",
"Blood2.png",
"18.png",
"14.png"
2023-04-07 20:18:10 +08:00
],
"animates": [
"hand",
"sword",
"zone"
],
"bgms": [
"2.mp3",
"Mountain.mp3",
2023-04-19 14:26:21 +08:00
"baiying.mp3",
"bewithyou.mp3",
"bgm.mp3",
"bgm3.mp3",
"congtianerjiang.mp3",
"crystallake.mp3",
2023-04-19 14:26:21 +08:00
"cz.mp3",
"dianguanghuoshi.mp3",
"ep01.mp3",
"ep29.mp3",
2023-04-19 14:26:21 +08:00
"fate.mp3",
"gaolikangzhi.mp3",
"guduhy.mp3",
"haibian.mp3",
"heidian.mp3",
"jimeiren.mp3",
"kissTheRain.mp3",
2023-04-19 14:26:21 +08:00
"meimei.mp3",
"onenight.mp3",
"qingchen.mp3",
"qishiwang.mp3",
"richu.mp3",
"rongyan.mp3",
"rouhedeshou.mp3",
"shengli.mp3",
"shoushubaodan.mp3",
"title.mp3",
2023-04-19 14:26:21 +08:00
"wangqiuwangzi.mp3",
"wmf.mp3",
2023-04-19 14:26:21 +08:00
"xiarihuahuo.mp3",
"xxcb.mp3",
2023-04-19 14:26:21 +08:00
"yinghua.mp3",
"yunitongzai.mp3",
"zy.mp3"
2023-04-07 20:18:10 +08:00
],
"sounds": [
"attack.mp3",
"bomb.mp3",
"cancel.mp3",
"centerFly.mp3",
"confirm.mp3",
"cursor.mp3",
"door.mp3",
"equip.mp3",
"error.mp3",
"floor.mp3",
"gem.mp3",
"icePickaxe.mp3",
"item.mp3",
"jump.mp3",
"load.mp3",
"open_ui.mp3",
"pickaxe.mp3",
"recovery.mp3",
"save.mp3",
"shop.mp3",
"zone.mp3"
],
"fonts": [],
"nameMap": {
"确定": "confirm.mp3",
"取消": "cancel.mp3",
"操作失败": "error.mp3",
"光标移动": "cursor.mp3",
"打开界面": "open_ui.mp3",
"读档": "load.mp3",
"存档": "save.mp3",
"获得道具": "item.mp3",
"回血": "recovery.mp3",
"炸弹": "bomb.mp3",
"飞行器": "centerFly.mp3",
"开关门": "door.mp3",
"跳跃": "jump.mp3",
"破墙镐": "pickaxe.mp3",
"破冰镐": "icePickaxe.mp3",
"宝石": "gem.mp3",
"阻激夹域": "zone.mp3",
"穿脱装备": "equip.mp3",
"背景音乐": "bgm.mp3",
"攻击": "attack.mp3",
"背景图": "bg.jpg",
"商店": "shop.mp3",
"领域": "zone"
},
2023-04-19 14:26:21 +08:00
"levelChoose": null,
2023-04-07 20:18:10 +08:00
"equipName": [
"武器",
"盾牌"
],
2023-04-19 14:26:21 +08:00
"startBgm": "bewithyou.mp3",
2023-04-07 20:18:10 +08:00
"styles": {
"startBackground": "project/images/bg.jpg",
"startVerticalBackground": "project/images/bg.jpg",
2023-04-19 14:26:21 +08:00
"startLogoStyle": "color: white",
"startButtonsStyle": "background-color: #32369F00; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 0px solid; caret-color: #FFD700;",
2023-04-07 20:18:10 +08:00
"statusLeftBackground": "url(project/materials/ground.png) repeat",
"statusTopBackground": "url(project/materials/ground.png) repeat",
"toolsBackground": "black",
2023-04-19 14:26:21 +08:00
"floorChangingStyle": "background-color: black; color: white",
2023-04-07 20:18:10 +08:00
"statusBarColor": [
255,
255,
255,
1
],
2023-04-19 14:26:21 +08:00
"borderColor": [
0,
0,
0,
1
],
2023-04-07 20:18:10 +08:00
"selectColor": [
255,
215,
0,
1
],
"font": "Verdana"
},
"splitImages": [
{
"name": "dragon.png",
"width": 384,
"height": 96,
"prefix": "dragon_"
}
]
},
"firstData": {
2023-04-19 14:26:21 +08:00
"title": "逐梦九天",
"name": "bdf1",
2023-04-07 20:18:10 +08:00
"version": "Ver 2.10.3",
2023-04-19 14:26:21 +08:00
"floorId": "MT0",
2023-04-07 20:18:10 +08:00
"hero": {
"image": "hero.png",
"animate": false,
2023-04-19 14:26:21 +08:00
"name": "bdf",
2023-04-07 20:18:10 +08:00
"lv": 1,
2023-04-19 14:26:21 +08:00
"hpmax": null,
"hp": 1,
"manamax": null,
2023-04-07 20:18:10 +08:00
"mana": 0,
2023-04-19 14:26:21 +08:00
"atk": 0,
"def": 0,
2023-04-07 20:18:10 +08:00
"mdef": 0,
"money": 0,
"exp": 0,
"equipment": [],
"items": {
"constants": {},
"tools": {},
"equips": {}
},
"loc": {
"direction": "up",
"x": 6,
"y": 10
},
"flags": {},
"followers": [],
"steps": 0
},
"startCanvas": [
{
"type": "comment",
"text": "在这里可以用事件来自定义绘制标题界面的背景图等"
},
{
"type": "comment",
"text": "也可以直接切换到其他楼层(比如某个开始剧情楼层)进行操作。"
},
{
"type": "previewUI",
"action": [
{
"type": "fillRect",
"x": 0,
"y": 0,
"width": "core._PX_ || core.__PIXELS__",
"height": "core._PY_ || core.__PIXELS__",
"style": [
82,
82,
82,
1
]
},
{
"type": "setAttribute",
"align": "center"
},
{
"type": "fillBoldText",
"x": "(core._PX_ || core.__PIXELS__) / 2",
"y": 80,
"style": [
255,
255,
255,
1
],
"strokeStyle": [
0,
0,
0,
1
],
"font": "bold 40px Verdana",
"text": "${core.firstData.title}"
}
]
},
{
"type": "setValue",
"name": "flag:selection",
"value": "0"
},
{
"type": "comment",
"text": "在右下方自绘一个对话框进行显示选择项"
},
{
"type": "previewUI",
"action": [
{
"type": "fillRect",
"x": 230,
"y": 250,
"width": 150,
"height": 142,
"radius": 10,
"style": [
50,
54,
159,
0.85
]
},
{
"type": "strokeRect",
"x": 230,
"y": 250,
"width": 150,
"height": 142,
"radius": 10,
"style": [
255,
255,
255,
1
],
"lineWidth": 2
},
{
"type": "fillBoldText",
"x": 305,
"y": 290,
"style": [
255,
255,
255,
1
],
"font": "bold 25px Verdana",
"text": "开始游戏"
},
{
"type": "fillBoldText",
"x": 305,
"y": 330,
"font": "bold 25px Verdana",
"text": "读取存档"
},
{
"type": "fillBoldText",
"x": 305,
"y": 370,
"font": "bold 25px Verdana",
"text": "回放录像"
}
]
},
{
"type": "while",
"condition": "1",
"data": [
{
"type": "drawSelector",
"image": "winskin.png",
"code": 1,
"x": 245,
"y": "261 + 40*flag:selection",
"width": 120,
"height": 40
},
{
"type": "wait",
"data": [
{
"case": "keyboard",
"keycode": "13,32",
"break": true,
"action": [
{
"type": "switch",
"condition": "flag:selection",
"caseList": [
{
"case": "0",
"action": [
{
"type": "comment",
"text": "在“开始游戏”确定"
},
{
"type": "break",
"n": 1
}
]
},
{
"case": "1",
"action": [
{
"type": "comment",
"text": "在“读取存档”确定"
},
{
"type": "callLoad"
}
]
},
{
"case": "2",
"action": [
{
"type": "comment",
"text": "在“回放录像”确定"
},
{
"type": "if",
"condition": "(!core.isReplaying())",
"true": [
{
"type": "function",
"function": "function(){\ncore.chooseReplayFile()\n}"
}
]
}
]
}
]
}
]
},
{
"case": "keyboard",
"keycode": "38",
"break": true,
"action": [
{
"type": "comment",
"text": "光标上键"
},
{
"type": "setValue",
"name": "flag:selection",
"value": "(flag:selection + 2) % 3"
}
]
},
{
"case": "keyboard",
"keycode": "40",
"break": true,
"action": [
{
"type": "comment",
"text": "光标下键"
},
{
"type": "setValue",
"name": "flag:selection",
"value": "(flag:selection + 1) % 3"
}
]
},
{
"case": "mouse",
"px": [
245,
365
],
"py": [
261,
300
],
"break": true,
"action": [
{
"type": "comment",
"text": "点击“开始游戏”"
},
{
"type": "break",
"n": 1
}
]
},
{
"case": "mouse",
"px": [
245,
365
],
"py": [
301,
340
],
"break": true,
"action": [
{
"type": "comment",
"text": "点击“读取存档”"
},
{
"type": "callLoad"
}
]
},
{
"case": "mouse",
"px": [
245,
365
],
"py": [
341,
380
],
"break": true,
"action": [
{
"type": "comment",
"text": "点击“播放录像”"
},
{
"type": "if",
"condition": "(!core.isReplaying())",
"true": [
{
"type": "function",
"function": "function(){\ncore.chooseReplayFile()\n}"
}
]
}
]
}
]
}
]
},
{
"type": "setValue",
"name": "flag:selection",
"value": "null"
},
{
"type": "drawSelector",
"code": 1
},
{
"type": "clearMap"
},
{
"type": "function",
"function": "function(){\ncore.control.checkBgm()\n}"
},
{
"type": "if",
"condition": "(main.levelChoose.length == 0)",
"true": [
{
"type": "comment",
"text": "没有难度选择:直接开始游戏"
}
],
"false": [
{
"type": "comment",
"text": "难度选择:作为样例,这里只提供了一个显示选择项。"
},
{
"type": "function",
"function": "function(){\nvar choices = [];\nmain.levelChoose.forEach(function (one) {\n\tchoices.push({\n\t\t\"text\": one.title || '',\n\t\t\"action\": [\n\t\t\t{ \"type\": \"function\", \"function\": \"function() { core.status.hard = '\" + (one.name || '') + \"'; }\" }\n\t\t]\n\t});\n})\ncore.insertAction({ \"type\": \"choices\", \"choices\": choices });\n}"
},
{
"type": "comment",
"text": "你也可以仿照上面的样例进行自己创建等待用户操作来处理不同的难度分歧。\n如需自己处理请设置 core.status.hard \n例如自定义js脚本core.status.hard = 'Easy' "
}
]
},
{
"type": "clearMap"
},
{
"type": "comment",
"text": "接下来会执行startText中的事件"
},
{
"type": "comment",
"text": "状态栏默认处于隐藏状态;可以使用“显示状态栏”事件进行显示。"
}
],
"startText": [
{
2023-04-19 14:26:21 +08:00
"type": "setText",
"background": "winskin.png",
"time": 40
2023-04-07 20:18:10 +08:00
},
2023-04-19 14:26:21 +08:00
{
"type": "setCurtain",
"color": [
0,
0,
0,
1
],
"time": 500,
"keep": true
},
{
"type": "while",
"condition": "1",
"data": [
{
"type": "insert",
"loc": [
11,
11
],
"floorId": "ND1"
}
]
}
2023-04-07 20:18:10 +08:00
],
"shops": [
{
"id": "shop1",
"text": "\t[贪婪之神,moneyShop]勇敢的武士啊, 给我${20+2*flag:shop1}金币就可以:",
"textInList": "1F金币商店",
"mustEnable": false,
"disablePreview": false,
"choices": [
{
"text": "生命+800",
"need": "status:money>=20+2*flag:shop1",
"action": [
{
"type": "comment",
"text": "新版商店中需要手动扣减金币和增加访问次数"
},
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "20+2*flag:shop1"
},
{
"type": "setValue",
"name": "flag:shop1",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "800"
}
]
},
{
"text": "攻击+4",
"need": "status:money>=20+2*flag:shop1",
"action": [
{
"type": "comment",
"text": "新版商店中需要手动扣减金币和增加访问次数"
},
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "20+2*flag:shop1"
},
{
"type": "setValue",
"name": "flag:shop1",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "4"
}
]
}
]
},
{
"id": "shop2",
"text": "\t[贪婪之神,expShop]勇敢的武士啊, 给我一定经验就可以:",
"textInList": "1F经验商店",
"mustEnable": false,
"disablePreview": true,
"choices": [
{
"text": "等级+1100经验",
"need": "status:exp>=100",
"action": [
{
"type": "setValue",
"name": "status:exp",
"operator": "-=",
"value": "100"
},
{
"type": "setValue",
"name": "status:lv",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "1000"
}
]
}
]
},
{
"id": "itemShop",
"item": true,
"textInList": "道具商店",
"mustEnable": false,
"choices": [
{
"id": "yellowKey",
"number": 10,
"money": "10",
"sell": "5"
}
]
},
{
"id": "keyShop",
"textInList": "回收钥匙商店",
"mustEnable": false,
"commonEvent": "回收钥匙商店"
}
],
"levelUp": [
{
"need": "0",
2023-04-19 14:26:21 +08:00
"title": "婴儿",
"clear": true,
2023-04-07 20:18:10 +08:00
"action": [
{
"type": "comment",
"text": "此处是初始等级,只需填写称号"
}
]
},
{
2023-04-19 14:26:21 +08:00
"need": "1",
"title": "1周岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "100"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "1"
}
]
},
{
"need": "26",
"title": "2周岁",
"clear": true,
2023-04-07 20:18:10 +08:00
"action": [
2023-04-19 14:26:21 +08:00
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "2"
},
2023-04-07 20:18:10 +08:00
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
2023-04-19 14:26:21 +08:00
"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"
2023-04-07 20:18:10 +08:00
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
2023-04-19 14:26:21 +08:00
"value": "4"
2023-04-07 20:18:10 +08:00
}
]
},
{
2023-04-19 14:26:21 +08:00
"need": "11",
"title": "3岁半",
"clear": true,
2023-04-07 20:18:10 +08:00
"action": [
{
2023-04-19 14:26:21 +08:00
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "500"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "5"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "5"
2023-04-07 20:18:10 +08:00
}
]
2023-04-23 12:59:17 +08:00
},
{
"need": "38",
"title": "4岁",
"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"
}
]
},
{
"need": "40",
"title": "5岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "600"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "6"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "6"
}
]
},
{
"need": "50",
"title": "6岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "800"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "8"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "8"
}
]
},
{
"need": "60",
"title": "7岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "1000"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "10"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "10"
}
]
},
{
"need": "94",
"title": "7岁半",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "1500"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "15"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "15"
}
]
},
{
"need": "300",
"title": "8岁",
"clear": true,
"action": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "1000"
},
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "10"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "10"
}
]
2023-04-07 20:18:10 +08:00
}
]
},
"values": {
"lavaDamage": 100,
"poisonDamage": 10,
"weakValue": 20,
2023-04-19 14:26:21 +08:00
"redGem": 1,
"blueGem": 1,
"greenGem": 3,
"redPotion": 50,
"bluePotion": 100,
"yellowPotion": 200,
"greenPotion": 500,
"breakArmor": null,
"counterAttack": null,
"purify": null,
"hatred": null,
2023-04-07 20:18:10 +08:00
"animateSpeed": 300,
"moveSpeed": 100,
"statusCanvasRowsOnMobile": 3,
2023-04-19 14:26:21 +08:00
"floorChangeTime": 0
2023-04-07 20:18:10 +08:00
},
"flags": {
"statusBarItems": [
"enableFloor",
2023-04-19 14:26:21 +08:00
"enableName",
2023-04-07 20:18:10 +08:00
"enableLv",
"enableHP",
"enableAtk",
"enableDef",
"enableMDef",
"enableMoney",
"enableExp",
2023-04-19 14:26:21 +08:00
"enableLevelUp",
"levelUpLeftMode",
2023-04-07 20:18:10 +08:00
"enableKeys",
2023-04-19 14:26:21 +08:00
"enablePZF"
2023-04-07 20:18:10 +08:00
],
"autoScale": true,
"extendToolbar": false,
2023-04-19 14:26:21 +08:00
"flyNearStair": false,
2023-04-07 20:18:10 +08:00
"flyRecordPosition": false,
"itemFirstText": false,
"equipboxButton": false,
"enableAddPoint": false,
"enableNegativeDamage": false,
"betweenAttackMax": false,
"useLoop": true,
2023-04-07 20:18:10 +08:00
"startUsingCanvas": false,
"statusCanvas": true,
2023-04-19 14:26:21 +08:00
"enableEnemyPoint": false,
"enableGentleClick": true,
2023-04-07 20:18:10 +08:00
"ignoreChangeFloor": true,
"canGoDeadZone": false,
"enableMoveDirectly": true,
2023-04-19 14:26:21 +08:00
"enableRouteFolding": false,
2023-04-07 20:18:10 +08:00
"disableShopOnDamage": false,
"blurFg": false,
"hideLeftStatusBar": false
}
}