Difficult-Rocket/sys_value/parts.json5

52 lines
1001 B
Plaintext
Raw Normal View History

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
[
'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-02-13 17:43:05 +08:00
'bool',
2021-02-16 12:51:07 +08:00
// hidden in mission (even thought that is not done yet)
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
2021-02-14 10:24:38 +08:00
//可以为包含文件夹的 比如:./engine/xxx.png
2021-02-02 16:45:20 +08:00
[
'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
// 碰撞箱大小 (暂时只支持方形碰撞箱)
//坐标轴也是从左上开始
[
'特殊值(懒得写)'
]
2021-01-29 14:07:40 +08:00
],
2021-02-03 22:04:34 +08:00
*/
2021-02-14 10:24:38 +08:00
test1: [
['test1', '一个测试用部件'],
[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
}