不愧是我

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,7 +54,9 @@ class RenderThread(mp.Process, pyglet.window.Window):
def on_draw(self):
# render parts
for part in self.parts:
for ship in self.parts:
ship_poi = ship
for part in ship:
pass
def on_mouse_motion(self, x, y, dx, dy):

View File

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