diff --git a/bin/client.py b/bin/client.py index e8c909e..f4c73d5 100644 --- a/bin/client.py +++ b/bin/client.py @@ -48,7 +48,14 @@ class RenderThread(mp.Process, pyglet.window.Window): caption=str(self.window_c['caption']), visible=bin.tools.mbool(self.window_c['visible'])) + """ + draws + """ + def on_draw(self): + pass + + def part_draw(self): # render parts for ship in self.parts: ship_poi = ship['brain'][3] diff --git a/sys_value/parts.json5 b/sys_value/parts.json5 new file mode 100644 index 0000000..fd129ac --- /dev/null +++ b/sys_value/parts.json5 @@ -0,0 +1,20 @@ +{ + 'part id': [ + [ + 'float', + 'float' + ], + /* 坐标轴偏移量 + 指的是部件的碰撞箱左上角到贴图左上角的距离*/ + [ + 'float', + 'float' + ], + /* 碰撞箱大小 (暂时只支持方形碰撞箱) + 坐标轴也是从左上开始*/ + 'xxx.png' + /* 贴图文件名 + 可以为包含文件夹的 比如:./engine/xxx.png*/ + ], + '': [] +} \ No newline at end of file