push!
This commit is contained in:
parent
fa29c261bf
commit
ab8d2b5860
@ -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]
|
||||
|
20
sys_value/parts.json5
Normal file
20
sys_value/parts.json5
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
'part id': [
|
||||
[
|
||||
'float',
|
||||
'float'
|
||||
],
|
||||
/* 坐标轴偏移量
|
||||
指的是部件的碰撞箱左上角到贴图左上角的距离*/
|
||||
[
|
||||
'float',
|
||||
'float'
|
||||
],
|
||||
/* 碰撞箱大小 (暂时只支持方形碰撞箱)
|
||||
坐标轴也是从左上开始*/
|
||||
'xxx.png'
|
||||
/* 贴图文件名
|
||||
可以为包含文件夹的 比如:./engine/xxx.png*/
|
||||
],
|
||||
'': []
|
||||
}
|
Loading…
Reference in New Issue
Block a user