This commit is contained in:
沈瑗杰 2021-02-14 10:51:13 +08:00
parent 61ef7d3190
commit a3358e805e
2 changed files with 9 additions and 6 deletions

View File

@ -15,7 +15,7 @@ try:
# been import use
from bin import configs
from bin import tools
except ModuleNotFoundError:
except ModuleNotFoundError or ImportError:
# editing use
import configs
import tools
@ -94,9 +94,12 @@ class RenderThread(mp.Process, pyglet.window.Window):
"""
def on_draw(self):
self.part_draw()
self.logger.info('testing!')
def part_draw(self):
def build_draw(self):
pass
def space_draw(self):
# render parts
for ship in self.ships:
# get ship poi

View File

@ -8,7 +8,7 @@
}
},
client: {
'self.view': ['space', 'map', 'menu'],
'self.view': ['space', 'map', 'menu', 'build'],
'self.textures': {
'first name of textures(defaut: difficult_rocket)': {
'name of image or name of list': 'pyglet.image class or dict',
@ -17,7 +17,7 @@
会直接检测是列表还是image
另外 可 在文件夹同级放image文件
*/
'nothing': 'nothing'
nothing: 'nothing'
}
},
'self.parts': {
@ -60,7 +60,7 @@
比如对接之后传输燃料、渲染太阳能板
的时候可以用到
*/
'nothing': 'nothing'
nothing: 'nothing'
}
]
}