This commit is contained in:
沈瑗杰 2021-01-29 14:07:40 +08:00
parent fa29c261bf
commit ab8d2b5860
2 changed files with 27 additions and 0 deletions

View File

@ -48,7 +48,14 @@ class RenderThread(mp.Process, pyglet.window.Window):
caption=str(self.window_c['caption']), caption=str(self.window_c['caption']),
visible=bin.tools.mbool(self.window_c['visible'])) visible=bin.tools.mbool(self.window_c['visible']))
"""
draws
"""
def on_draw(self): def on_draw(self):
pass
def part_draw(self):
# render parts # render parts
for ship in self.parts: for ship in self.parts:
ship_poi = ship['brain'][3] ship_poi = ship['brain'][3]

20
sys_value/parts.json5 Normal file
View File

@ -0,0 +1,20 @@
{
'part id': [
[
'float',
'float'
],
/* 坐标轴偏移量
指的是部件的碰撞箱左上角到贴图左上角的距离*/
[
'float',
'float'
],
/* 碰撞箱大小 (暂时只支持方形碰撞箱)
坐标轴也是从左上开始*/
'xxx.png'
/* 贴图文件名
可以为包含文件夹的 比如:./engine/xxx.png*/
],
'': []
}