不愧是我呢

This commit is contained in:
沈瑗杰 2021-01-28 22:50:28 +08:00
parent d154b99b2b
commit fa29c261bf
3 changed files with 23 additions and 12 deletions

View File

@ -21,8 +21,8 @@ class RenderThread(mp.Process, pyglet.window.Window):
# logging # logging
self.logger = logger self.logger = logger
# value # value
self.process_id = 'Render' self.process_id = 'Client'
self.process_name = 'render process' self.process_name = 'Client process'
# share memory # share memory
self.dev_list = dev_list self.dev_list = dev_list
self.dev_dic = dev_dic self.dev_dic = dev_dic
@ -48,17 +48,17 @@ 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']))
"""
keyboard and mouse input
"""
def on_draw(self): def on_draw(self):
# render parts # render parts
for ship in self.parts: for ship in self.parts:
ship_poi = ship ship_poi = ship['brain'][3]
for part in ship: for part in ship:
pass pass
"""
keyboard and mouse input
"""
def on_mouse_motion(self, x, y, dx, dy): def on_mouse_motion(self, x, y, dx, dy):
pass pass

View File

@ -10,7 +10,7 @@
'client': { 'client': {
'self.parts': { 'self.parts': {
'ship name': { 'ship name': {
'control center': [ 'brain': [
'part type', 'part type',
// part type // part type
'turn', 'turn',
@ -21,14 +21,14 @@
'basic_config.basic_poi' 'basic_config.basic_poi'
] ]
/*rua 我用中文了! /*rua 我用中文了!
飞船的"控制中心"(直译)没有"特殊值" 飞船的"大脑"(直译)没有"特殊值"
也就是说控制中心只是一个"壳"(服务端同理) 也就是说"大脑"只是一个"壳"(服务端同理)
只会计算位置、方向之类的统一数据 只会计算位置、方向之类的统一数据
需要改的话发issue 需要改的话发issue 嘿嘿
*/ */
], ],
'part ID': [ 'part ID': [
// partId // part id
'part type', 'part type',
// part type // part type
'turn', 'turn',
@ -41,6 +41,14 @@
{ {
'special value 1': 'xxx', 'special value 1': 'xxx',
'special value 2': 'xxx' 'special value 2': 'xxx'
/*继续继续
这里的“特殊值”指的是
除去上面写的类型、角度、镜像、位置之外的其他属性
比如燃料罐的燃料量、太阳能板的打开状态
需要渲染一些特殊项的时候
比如对接之后传输燃料、渲染太阳能板
的时候可以用到
*/
} }
] ]
} }

3
docs/rua!.md Normal file
View File

@ -0,0 +1,3 @@
# pyglet相关
pyglet 坐标轴原点是左上角