HumanBreak/public/project/floors/MT1.js
2023-04-17 11:41:57 +08:00

86 lines
3.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

main.floors.MT1=
{
"floorId": "MT1",
"title": "点光源-1",
"name": "1",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 1,
"defaultGround": "ground",
"bgm": "cave.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"5,1": [
"本层将展示点光源插件的基础使用与效果"
],
"4,5": [
"这中间是一个固定的点光源,它是透明色的,表示其附近将完全展示成原来的样貌,位置为(112,208)开始衰减半径为100最大半径为300受到墙壁遮挡不跟随勇士。",
"它的配置代码如下:\n{\n id: 'mt0_1',\n x: 112,\n y: 208,\n decay: 100,\n r: 300,\n color: '#0000'\n}"
],
"9,1": [
"点光源插件有对光源的配置,也有对其他内容的配置。",
"首先,对一个楼层应当有一个背景色的配置,例如本层的背景色是一个半透明的黑色(#0008)这个值表示r g b均为0a为88十六进制因此为半透明的黑色。\n颜色一共有以下几种格式\n#rgb\n#rgba\n#rrggbb\n#rrggbbaa\nrgb(r,g,b)\nrgba(r,g,b,a)\nhsl(h,s,l)\nhsla(h,s,l,a)",
"除此之外,还有两个配置。\n一个是光浸入墙的程度表示光能在墙壁内部穿透多少例如本层为4说明光会浸入墙壁中4个像素。\n另一个是光的模糊程度例如本层为3表示光拥有range为3px的高斯模糊。不用太理解什么是高斯模糊什么是range只需要知道这个值越大越模糊即可。调整该项可以提高视觉效果。"
],
"7,10": [
"这里有一个不被墙壁遮挡的光源,它的配置代码如下:\n{\n id: 'mt1_2',\n x: 240,\n y: 336,\n decay: 50,\n r: 150,\n color: '#0000',\n noShelter: true\n}"
],
"9,8": [
"当然光源还可以是其他颜色,例如这就是一个蓝色光源",
"它的配置代码如下:\n{\n id: 'mt1_3',\n x: 336,\n y: 272,\n decay: 50,\n r: 200,\n color: '#5bf3'\n}"
]
},
"changeFloor": {
"7,1": {
"floorId": ":before",
"stair": "upFloor"
},
"7,13": {
"floorId": ":next",
"stair": "downFloor"
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[ 1, 0, 0, 0, 0,129, 0, 88, 0,129, 0, 0, 0, 0, 1],
[ 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1],
[ 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1],
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1],
[ 1, 0, 1, 0,129, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1],
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1],
[ 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1],
[ 1, 0, 0, 0, 0, 0, 1, 1, 1,129, 0, 0, 1, 0, 1],
[ 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1],
[ 1, 0, 0, 0, 1, 0, 1,129, 1, 0, 1, 0, 1, 1, 1],
[ 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1],
[ 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1],
[ 1, 0, 0, 0, 0, 0, 0, 87, 0, 0, 0, 0, 0, 0, 1],
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
}