2021-01-29 14:07:40 +08:00
|
|
|
{
|
2021-02-14 10:24:38 +08:00
|
|
|
/*
|
2021-01-29 14:07:40 +08:00
|
|
|
'part id': [
|
2021-02-02 16:45:20 +08:00
|
|
|
[
|
2021-09-02 22:47:10 +08:00
|
|
|
'part name', // part name can be reuse
|
|
|
|
'description', // 描述
|
|
|
|
], // about names and other
|
|
|
|
[ 'float', // mass
|
|
|
|
'bool', // hidden in part list
|
|
|
|
'bool', // hidden in mission (even thought that is not done yet)
|
|
|
|
'float' // buoyancy(浮力) in the water
|
|
|
|
], // about config
|
|
|
|
[ 'xxx.png', // texture file name
|
2021-02-14 10:24:38 +08:00
|
|
|
//可以为包含文件夹的 比如:./engine/xxx.png
|
2021-09-02 22:47:10 +08:00
|
|
|
[ 'float', // 贴图偏移量
|
|
|
|
'float' ] // 指的是部件的碰撞箱左上角到贴图左上角的距离
|
|
|
|
], // about texture
|
|
|
|
[ 'float',
|
|
|
|
'float' ],
|
2021-02-02 16:45:20 +08:00
|
|
|
// 碰撞箱大小 (暂时只支持方形碰撞箱)
|
2021-09-02 22:47:10 +08:00
|
|
|
// 坐标轴也是从左下开始
|
2021-02-02 16:45:20 +08:00
|
|
|
[
|
|
|
|
'特殊值(懒得写)'
|
|
|
|
]
|
2021-01-29 14:07:40 +08:00
|
|
|
],
|
2021-02-03 22:04:34 +08:00
|
|
|
*/
|
2021-09-02 22:47:10 +08:00
|
|
|
'test1': [
|
2021-04-03 12:15:24 +08:00
|
|
|
[
|
2021-09-02 22:47:10 +08:00
|
|
|
'test-1',
|
2021-04-03 12:15:24 +08:00
|
|
|
'一个测试用部件'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
1.0,
|
|
|
|
false,
|
|
|
|
0.1
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'parts/Beam.png',
|
|
|
|
[
|
|
|
|
0.0,
|
|
|
|
0.0
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
3.0,
|
|
|
|
2.0
|
|
|
|
]
|
2021-02-03 22:04:34 +08:00
|
|
|
]
|
2021-02-14 10:24:38 +08:00
|
|
|
}
|