不愧是我

This commit is contained in:
沈瑗杰 2021-01-28 22:07:57 +08:00
parent 26a2c19eb7
commit d154b99b2b
2 changed files with 38 additions and 14 deletions

View File

@ -54,8 +54,10 @@ class RenderThread(mp.Process, pyglet.window.Window):
def on_draw(self): def on_draw(self):
# render parts # render parts
for part in self.parts: for ship in self.parts:
pass ship_poi = ship
for part in ship:
pass
def on_mouse_motion(self, x, y, dx, dy): def on_mouse_motion(self, x, y, dx, dy):
pass pass

View File

@ -9,19 +9,41 @@
}, },
'client': { 'client': {
'self.parts': { 'self.parts': {
'part ID': [ 'ship name': {
// shipId.partId 'control center': [
'part Type', 'part type',
// just id // part type
[ 'turn',
'x', // type:float
'y' 'is mirror',
// type:bool
[
'basic_config.basic_poi'
]
/*rua 我用中文了!
飞船的"控制中心"(直译)没有"特殊值"
也就是说控制中心只是一个"壳"(服务端同理)
只会计算位置、方向之类的统一数据
需要改的话发issue
*/
], ],
//poi 'part ID': [
{ // partId
'special value': 'xxx' 'part type',
} // part type
] 'turn',
// type:float 0 is up clockwise
'is mirror',
// type:bool
[
'basic_config.basic_poi'
],
{
'special value 1': 'xxx',
'special value 2': 'xxx'
}
]
}
} }
} }
} }