Use Tab to indent
This commit is contained in:
parent
1764592f62
commit
39245cd615
325
project/data.js
325
project/data.js
@ -1,168 +1,167 @@
|
|||||||
data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
||||||
{
|
{
|
||||||
"main" : {
|
"main" : {
|
||||||
"floorIds" : [
|
"floorIds" : [
|
||||||
"sample0", "sample1", "sample2"
|
"sample0", "sample1", "sample2"
|
||||||
],
|
],
|
||||||
"images" : [
|
"images" : [
|
||||||
"bg.jpg",
|
"bg.jpg",
|
||||||
],
|
],
|
||||||
"animates" : [
|
"animates" : [
|
||||||
"hand", "sword", "zone", "yongchang",
|
"hand", "sword", "zone", "yongchang",
|
||||||
],
|
],
|
||||||
"bgms" : [
|
"bgms" : [
|
||||||
'bgm.mp3', 'qianjin.mid', 'star.mid',
|
'bgm.mp3', 'qianjin.mid', 'star.mid',
|
||||||
],
|
],
|
||||||
"sounds" : [
|
"sounds" : [
|
||||||
'floor.mp3', 'attack.ogg', 'door.ogg', 'item.ogg', 'zone.ogg'
|
'floor.mp3', 'attack.ogg', 'door.ogg', 'item.ogg', 'zone.ogg'
|
||||||
],
|
],
|
||||||
"bgmRemote" : false,
|
"bgmRemote" : false,
|
||||||
"startBackground" : "bg.jpg",
|
"startBackground" : "bg.jpg",
|
||||||
"startLogoStyle" : "color: black",
|
"startLogoStyle" : "color: black",
|
||||||
"levelChoose" : [["简单","Easy"],["普通","Normal"],["困难","Hard"],["噩梦","Hell"]],
|
"levelChoose" : [["简单","Easy"],["普通","Normal"],["困难","Hard"],["噩梦","Hell"]],
|
||||||
},
|
},
|
||||||
"firstData" : {
|
"firstData" : {
|
||||||
"title": "魔塔样板",
|
"title": "魔塔样板",
|
||||||
"name": "template",
|
"name": "template",
|
||||||
"version": "Ver 2.0",
|
"version": "Ver 2.0",
|
||||||
"floorId": "sample0",
|
"floorId": "sample0",
|
||||||
"hero": {
|
"hero": {
|
||||||
"name": "阳光",
|
"name": "阳光",
|
||||||
'lv': 1,
|
'lv': 1,
|
||||||
"hpmax": 9999,
|
"hpmax": 9999,
|
||||||
"hp": 1000,
|
"hp": 1000,
|
||||||
"atk": 100,
|
"atk": 100,
|
||||||
"def": 100,
|
"def": 100,
|
||||||
"mdef": 100,
|
"mdef": 100,
|
||||||
"money": 100,
|
"money": 100,
|
||||||
"experience": 0,
|
"experience": 0,
|
||||||
"items": {
|
"items": {
|
||||||
"keys": {
|
"keys": {
|
||||||
"yellowKey": 0,
|
"yellowKey": 0,
|
||||||
"blueKey": 0,
|
"blueKey": 0,
|
||||||
"redKey": 0
|
"redKey": 0
|
||||||
},
|
},
|
||||||
"constants": {},
|
"constants": {},
|
||||||
"tools": {}
|
"tools": {}
|
||||||
},
|
},
|
||||||
"flyRange": [],
|
"flyRange": [],
|
||||||
"loc": {"direction": "up", "x": 6, "y": 10},
|
"loc": {"direction": "up", "x": 6, "y": 10},
|
||||||
"flags": {
|
"flags": {
|
||||||
"poison": false,
|
"poison": false,
|
||||||
"weak": false,
|
"weak": false,
|
||||||
"curse": false,
|
"curse": false,
|
||||||
},
|
},
|
||||||
"steps": 0,
|
"steps": 0,
|
||||||
},
|
},
|
||||||
"startText": [
|
"startText": [
|
||||||
"Hi,欢迎来到 HTML5 魔塔样板!\n\n本样板由艾之葵制作,可以让你在不会写任何代码\n的情况下也能做出属于自己的H5魔塔!",
|
"Hi,欢迎来到 HTML5 魔塔样板!\n\n本样板由艾之葵制作,可以让你在不会写任何代码\n的情况下也能做出属于自己的H5魔塔!",
|
||||||
"这里游戏开始时的剧情。\n定义在data.js的startText处。\n\n你可以在这里写上自己的内容。",
|
"这里游戏开始时的剧情。\n定义在data.js的startText处。\n\n你可以在这里写上自己的内容。",
|
||||||
"赶快来试一试吧!"
|
"赶快来试一试吧!"
|
||||||
],
|
],
|
||||||
"shops": [
|
"shops": [
|
||||||
{
|
{
|
||||||
"id": "moneyShop1",
|
"id": "moneyShop1",
|
||||||
"name": "贪婪之神",
|
"name": "贪婪之神",
|
||||||
"icon": "blueShop",
|
"icon": "blueShop",
|
||||||
"textInList": "1F金币商店",
|
"textInList": "1F金币商店",
|
||||||
"use": "money",
|
"use": "money",
|
||||||
"need": "20+10*times*(times+1)",
|
"need": "20+10*times*(times+1)",
|
||||||
"text": "勇敢的武士啊,给我${need}金币就可以:",
|
"text": "勇敢的武士啊,给我${need}金币就可以:",
|
||||||
"choices": [
|
"choices": [
|
||||||
{"text": "生命+800", "effect": "status:hp+=800"},
|
{"text": "生命+800", "effect": "status:hp+=800"},
|
||||||
{"text": "攻击+4", "effect": "status:atk+=4"},
|
{"text": "攻击+4", "effect": "status:atk+=4"},
|
||||||
{"text": "防御+4", "effect": "status:def+=4"},
|
{"text": "防御+4", "effect": "status:def+=4"},
|
||||||
{"text": "魔防+10", "effect": "status:mdef+=10"}
|
{"text": "魔防+10", "effect": "status:mdef+=10"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "expShop1",
|
"id": "expShop1",
|
||||||
"name": "经验之神",
|
"name": "经验之神",
|
||||||
"icon": "pinkShop",
|
"icon": "pinkShop",
|
||||||
"textInList": "1F经验商店",
|
"textInList": "1F经验商店",
|
||||||
"use": "experience",
|
"use": "experience",
|
||||||
"need": "-1",
|
"need": "-1",
|
||||||
"text": "勇敢的武士啊,给我若干经验就可以:",
|
"text": "勇敢的武士啊,给我若干经验就可以:",
|
||||||
"choices": [
|
"choices": [
|
||||||
{"text": "等级+1", "need": "100", "effect": "status:lv+=1;status:hp+=1000;status:atk+=7;status:def+=7"},
|
{"text": "等级+1", "need": "100", "effect": "status:lv+=1;status:hp+=1000;status:atk+=7;status:def+=7"},
|
||||||
{"text": "攻击+5", "need": "30", "effect": "status:atk+=5"},
|
{"text": "攻击+5", "need": "30", "effect": "status:atk+=5"},
|
||||||
{"text": "防御+5", "need": "30", "effect": "status:def+=5"},
|
{"text": "防御+5", "need": "30", "effect": "status:def+=5"},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"levelUp": [
|
"levelUp": [
|
||||||
{},
|
{},
|
||||||
{"need": 20, "name": "第二级", "effect": "status:hp+=2*(status:atk+status:def);status:atk+=10;status:def+=10"},
|
{"need": 20, "name": "第二级", "effect": "status:hp+=2*(status:atk+status:def);status:atk+=10;status:def+=10"},
|
||||||
{"need": 40, "effect": function () {
|
{"need": 40, "effect": function () {
|
||||||
core.insertAction("恭喜升级!");
|
core.insertAction("恭喜升级!");
|
||||||
core.status.hero.hp *= 2;
|
core.status.hero.hp *= 2;
|
||||||
core.status.hero.atk += 100;
|
core.status.hero.atk += 100;
|
||||||
core.status.hero.def += 100;
|
core.status.hero.def += 100;
|
||||||
}},
|
}},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"values" : {
|
"values" : {
|
||||||
"lavaDamage": 100,
|
"lavaDamage": 100,
|
||||||
"poisonDamage": 10,
|
"poisonDamage": 10,
|
||||||
"weakValue": 20,
|
"weakValue": 20,
|
||||||
"redJewel": 3,
|
"redJewel": 3,
|
||||||
"blueJewel": 3,
|
"blueJewel": 3,
|
||||||
"greenJewel": 5,
|
"greenJewel": 5,
|
||||||
"redPotion": 100,
|
"redPotion": 100,
|
||||||
"bluePotion": 250,
|
"bluePotion": 250,
|
||||||
"yellowPotion": 500,
|
"yellowPotion": 500,
|
||||||
"greenPotion": 800,
|
"greenPotion": 800,
|
||||||
"sword0": 0,
|
"sword0": 0,
|
||||||
"shield0": 0,
|
"shield0": 0,
|
||||||
"sword1": 10,
|
"sword1": 10,
|
||||||
"shield1": 10,
|
"shield1": 10,
|
||||||
"sword2": 20,
|
"sword2": 20,
|
||||||
"shield2": 20,
|
"shield2": 20,
|
||||||
"sword3": 40,
|
"sword3": 40,
|
||||||
"shield3": 40,
|
"shield3": 40,
|
||||||
"sword4": 80,
|
"sword4": 80,
|
||||||
"shield4": 80,
|
"shield4": 80,
|
||||||
"sword5": 160,
|
"sword5": 160,
|
||||||
"shield5": 160,
|
"shield5": 160,
|
||||||
"moneyPocket": 500,
|
"moneyPocket": 500,
|
||||||
/****** 怪物相关 ******/
|
'breakArmor': 0.9,
|
||||||
'breakArmor': 0.9,
|
'counterAttack': 0.1,
|
||||||
'counterAttack': 0.1,
|
'purify': 3,
|
||||||
'purify': 3,
|
'hatred': 2,
|
||||||
'hatred': 2,
|
'animateSpeed': 300,
|
||||||
'animateSpeed': 300,
|
},
|
||||||
},
|
|
||||||
|
|
||||||
"flags" : {
|
"flags" : {
|
||||||
"enableFloor": true,
|
"enableFloor": true,
|
||||||
"enableLv": false,
|
"enableLv": false,
|
||||||
"enableHPMax": false,
|
"enableHPMax": false,
|
||||||
"enableMDef": true,
|
"enableMDef": true,
|
||||||
"enableMoney": true,
|
"enableMoney": true,
|
||||||
"enableExperience": false,
|
"enableExperience": false,
|
||||||
"enableLevelUp": false,
|
"enableLevelUp": false,
|
||||||
"enableDebuff": false,
|
"enableDebuff": false,
|
||||||
"flyNearStair": true,
|
"flyNearStair": true,
|
||||||
"pickaxeFourDirections": true,
|
"pickaxeFourDirections": true,
|
||||||
"bombFourDirections": true,
|
"bombFourDirections": true,
|
||||||
"bigKeyIsBox": false,
|
"bigKeyIsBox": false,
|
||||||
"equipment": true,
|
"equipment": true,
|
||||||
"enableDeleteItem": true,
|
"enableDeleteItem": true,
|
||||||
"enableAddPoint": false,
|
"enableAddPoint": false,
|
||||||
"enableNegativeDamage": true,
|
"enableNegativeDamage": true,
|
||||||
"hatredDecrease": true,
|
"hatredDecrease": true,
|
||||||
"betweenAttackCeil": false,
|
"betweenAttackCeil": false,
|
||||||
"startDirectly": false,
|
"startDirectly": false,
|
||||||
"canOpenBattleAnimate": true,
|
"canOpenBattleAnimate": true,
|
||||||
"showBattleAnimateConfirm": true,
|
"showBattleAnimateConfirm": true,
|
||||||
"battleAnimate": true,
|
"battleAnimate": true,
|
||||||
"displayEnemyDamage": true,
|
"displayEnemyDamage": true,
|
||||||
"displayExtraDamage": true,
|
"displayExtraDamage": true,
|
||||||
"enableGentleClick": true,
|
"enableGentleClick": true,
|
||||||
"potionWhileRouting": false,
|
"potionWhileRouting": false,
|
||||||
"enableViewMaps": true,
|
"enableViewMaps": true,
|
||||||
"portalWithoutTrigger": true,
|
"portalWithoutTrigger": true,
|
||||||
"enableMoveDirectly": true,
|
"enableMoveDirectly": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user