From ab8d2b5860591da3b7a3b8cad1344193c25ba152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Fri, 29 Jan 2021 14:07:40 +0800 Subject: [PATCH] push! --- bin/client.py | 7 +++++++ sys_value/parts.json5 | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 sys_value/parts.json5 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