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