| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/pfm/h5mota/project/ |
Upload File : |
var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
{
"main": {
"floorIds": [
"MT0",
"MT1",
"MT2",
"MT3",
"MT4",
"MT5",
"MT6",
"MT7",
"MT8",
"MT9",
"MT10",
"MT11",
"MT12",
"MT13",
"MT14",
"MT15",
"MT16",
"MT17",
"MT18",
"MT19",
"MT20",
"MT21",
"MT22",
"MT23",
"MT24",
"MT25",
"MT26",
"MT27",
"MT28",
"MT29",
"MT30",
"MT31",
"MT32",
"MT33",
"MT34",
"MT35",
"MT36",
"MT37",
"MT38",
"MT39",
"MT40",
"MT41",
"MT42",
"MT43",
"MT44",
"MT45",
"MT46",
"MT47",
"MT48",
"MT49",
"MT50"
],
"floorPartitions": [],
"images": [
"bear.png",
"bg.jpg",
"dragon.png",
"hero.png",
"statusBackground.jpg",
"winskin.png"
],
"tilesets": [
"magictower.png"
],
"animates": [
"hand",
"sword",
"zone"
],
"bgms": [
"xiaoluoli.mp3",
"wan.mp3",
"huang.mp3",
"xian.mp3",
"chuanshuo.mp3",
"ed.mp3",
"hua.mp3",
"migong.mp3",
"bgm.mp3",
"section1.mp3",
"section2.mp3",
"section3.mp3",
"section4.mp3",
"section5.mp3",
"boss4.mp3",
"boss5.mp3",
"truth.mp3"
],
"sounds": [
"floor.mp3",
"attack.mp3",
"door.mp3",
"item.mp3",
"equip.mp3",
"zone.mp3",
"jump.mp3",
"pickaxe.mp3",
"bomb.mp3",
"centerFly.mp3",
"3F.mp3",
"10F.mp3",
"20F.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",
"上下楼": "floor.mp3",
"跳跃": "jump.mp3",
"破墙镐": "pickaxe.mp3",
"破冰镐": "icePickaxe.mp3",
"宝石": "gem.mp3",
"阻激夹域": "zone.mp3",
"穿脱装备": "equip.mp3",
"背景音乐": "bgm.mp3",
"攻击": "attack.mp3",
"背景图": "bg.jpg",
"商店": "shop.mp3",
"领域": "zone"
},
"levelChoose": [],
"equipName": [],
"startBgm": null,
"styles": {
"startBackground": "project/images/bg.jpg",
"startVerticalBackground": "project/images/bg.jpg",
"startLogoStyle": "display:none",
"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": "url(project/materials/ground.png) repeat",
"floorChangingStyle": "background-color: black; color: white",
"statusBarColor": [
255,
255,
255,
1
],
"borderColor": [
204,
204,
204,
1
],
"selectColor": [
255,
215,
0,
1
],
"font": "Verdana"
},
"splitImages": [
{
"name": "dragon.png",
"width": 384,
"height": 96,
"prefix": "dragon_"
}
]
},
"firstData": {
"title": "50层魔塔",
"name": "51",
"version": "Ver 2.6",
"floorId": "MT1",
"hero": {
"image": "hero.png",
"animate": false,
"name": "勇者",
"lv": 1,
"hpmax": -1,
"hp": 1000,
"manamax": -1,
"mana": 0,
"atk": 100,
"def": 100,
"mdef": 0,
"money": 0,
"exp": 0,
"equipment": [],
"items": {
"constants": {
"I300": 1
},
"tools": {},
"equips": {}
},
"loc": {
"direction": "down",
"x": 6,
"y": 11
},
"flags": {
"nowWeapon": "sword5",
"nowShield": "shield5",
"__winskin_opacity__": 1
},
"followers": [],
"steps": 0
},
"startCanvas": [
{
"type": "comment",
"text": "在这里可以用事件来自定义绘制标题界面的背景图等"
},
{
"type": "comment",
"text": "也可以直接切换到其他楼层(比如某个开始剧情楼层)进行操作。"
},
{
"type": "previewUI",
"action": [
{
"type": "fillRect",
"x": 0,
"y": 0,
"width": "core.__PIXELS__",
"height": "core.__PIXELS__",
"style": [
82,
82,
82,
1
]
},
{
"type": "setAttribute",
"align": "center"
},
{
"type": "fillBoldText",
"x": "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": [
{
"type": "setText",
"background": "winskin.png"
}
],
"shops": [],
"levelUp": [
{
"need": "0",
"title": "",
"action": [
{
"type": "comment",
"text": "此处是初始等级,只需填写称号"
}
]
},
{
"need": "20",
"title": "",
"action": [
{
"type": "setValue",
"name": "status:atk",
"operator": "+=",
"value": "10"
},
{
"type": "setValue",
"name": "status:def",
"operator": "+=",
"value": "10"
}
]
},
{
"need": "40",
"title": "",
"action": [
{
"type": "tip",
"text": "恭喜升级"
}
]
}
]
},
"values": {
"lavaDamage": 100,
"poisonDamage": 10,
"weakValue": 20,
"redGem": 1,
"blueGem": 1,
"greenGem": 5,
"redPotion": 50,
"bluePotion": 200,
"yellowPotion": 500,
"greenPotion": 800,
"breakArmor": 0.9,
"counterAttack": 0.1,
"purify": 3,
"hatred": 2,
"animateSpeed": 400,
"moveSpeed": 100,
"statusCanvasRowsOnMobile": 3,
"floorChangeTime": 0
},
"flags": {
"statusBarItems": [
"enableFloor",
"enableHP",
"enableAtk",
"enableDef",
"enableMoney",
"enableKeys"
],
"extendToolbar": false,
"flyNearStair": true,
"flyRecordPosition": false,
"itemFirstText": false,
"equipboxButton": false,
"enableAddPoint": false,
"enableNegativeDamage": false,
"betweenAttackMax": false,
"useLoop": true,
"startUsingCanvas": false,
"statusCanvas": false,
"enableEnemyPoint": true,
"enableGentleClick": false,
"ignoreChangeFloor": false,
"canGoDeadZone": false,
"enableMoveDirectly": true,
"enableRouteFolding": true,
"disableShopOnDamage": false,
"blurFg": false
}
}